Menu

Doxygen incorrectly parses "typedef" for call

vilak
2006-12-01
2013-06-11
  • vilak

    vilak - 2006-12-01

    Doxygen incorrectly parses "typedef" for callback-functions.

    Here's the sample:

    TestDoxy.h

    --->----

    #ifndef TestDoxyH
    #define TestDoxyH

    typedef Variant __fastcall ( __closure* FOnGetValue ) ( const AnsiString & TableName , const AnsiString & ColumnName , const int ID_Flight );
    typedef Variant __fastcall ( __closure* FOnGetAValue ) ( const int ID_Flight , const int LanguageID , const bool bForJournal );

    typedef void __fastcall (__closure *EOnReadSignal)    (
                                                             TRwClient* Sender,
                                                             const TServerSignal& Signal
                                                          );
    #endif

    ---<----

    The result of the parsing is as follows (HTML converted to plain text):

    --->----

    Typedefs

    typedef Variant  __fastcall (__closure *FOnGetValue)(const AnsiString &TableName
    typedef Variant const AnsiString &  ColumnName
    typedef Variant const AnsiString
    const int  ID_Flight
    typedef Variant  __fastcall (__closure *FOnGetAValue)(const int ID_Flight
    typedef Variant const int  LanguageID
    typedef Variant const int
    const bool  bForJournal
    typedef void  __fastcall (__closure *EOnReadSignal)(TRwClient *Sender
    typedef void const TServerSignal &  Signal

    ---<----

     
    • Marc-Antoine Ruel

      Have you tried

      typedef Variant  (__fastcall __closure* FOnGetValue ) ( const AnsiString & TableName , const AnsiString & ColumnName , const int ID_Flight );

      instead? Personnaly, I always write the calling convention inside the parenthesis.

      M-A

       
    • vilak

      vilak - 2006-12-04

      Here's new the sample:

      TestDoxy.h

      --->----

      #ifndef TestDoxyH
      #define TestDoxyH

      typedef Variant  (__fastcall  __closure* FOnGetValue ) ( const AnsiString & TableName , const AnsiString & ColumnName , const int ID_Flight );
      typedef Variant  (__fastcall __closure* FOnGetAValue ) ( const int ID_Flight , const int LanguageID , const bool bForJournal );

      typedef void  (__fastcall __closure *EOnReadSignal)    (
                                                               TRwClient* Sender,
                                                               const TServerSignal& Signal
                                                            );

      #endif

      ---<----

      The result of the parsing is as follows (HTML converted to plain text):

      --->----
      Typedefs

      typedef const AnsiString &  ColumnName
      typedef const AnsiString const
      int  ID_Flight
      typedef const int  LanguageID
      typedef const int const bool  bForJournal
      typedef const TServerSignal &  Signal

      Functions

      typedef  Variant (__fastcall __closure *FOnGetValue)(const AnsiString &TableName
      typedef  void (__fastcall __closure *EOnReadSignal)(TRwClient *Sender

      ---<----

       

Log in to post a comment.

MongoDB Logo MongoDB