[cfe-dev] Finding end of macro call

Романенков Кирилл kromanenkov2 at yandex.ru
Wed Aug 6 05:05:53 PDT 2014

Hi all,

For my checker I need to reach the semicolon after VarDecl statement ( For example: int a = 1 /*Need to get here*/;  ). For ordinary variables I used getLocWithOffset and Lexer::getRawToken, but this approach didn't work with macro calls.
(For example: int a = macro_call(Arg) /*Need to get here*/; ). In this situation I never reach the semicolon token. Is there a fast way to get SourceLocation of semicolon after macro call, considering the fact I am not interested in macro expansion.


More information about the cfe-dev mailing list