[cfe-dev] FunctionDecl question

Frank Redeker via cfe-dev cfe-dev at lists.llvm.org
Tue Jul 18 02:33:46 PDT 2017


Hello list,

is there is an easy way to distinguish if a function is declared as

void foo (void);
or
void foo ();

The reason I'm asking is that I use an ASTVisitor to generate stub
functions. But the compiler that I use reports an error when the
prototype is declared with (void) but the implementation not.


Frank



More information about the cfe-dev mailing list