[cfe-dev] How to detect call expressions in macro declaration

YuvalShahar yuval.shahar.007 at gmail.com
Thu Nov 14 05:26:44 PST 2013


I looked into it and I indeed get the same location for multiple macro calls,
but this means that I have to handle the first call and ignore the others.

I found a different way to achieve that:
the functions SourceLocation::isMacroID() &&
SourceManager::isMacroArgExpansion() gives me exactly the information I
needed.

Thanks again!




--
View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-detect-call-expressions-in-macro-declaration-tp4035948p4036075.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list