[cfe-dev] Finding end of macro call
kromanenkov2 at yandex.ru
Wed Aug 6 05:05:53 PDT 2014
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