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
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
Here's new the sample:
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
--->---- 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.
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
---<----
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
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
---<----