[cfe-dev] Macroces and cursor location
Денис Варин
denis.varin at gmail.com
Tue May 6 07:22:44 PDT 2014
Hi,
i use libclang and i want to know is if-statement really in macros or not
in following code:
#define SOME_MACROS if(a) a++;
void foo() {
int a=1;
SOME_MACROS
}
My code:
CXChildVisitResult handleVisitChildren(CXCursor cursor, CXCursor parent,
CXClientData dt) {
if ( clang_getCursorKind(cursor) == CXCursor_IfStmt ) {
// how find out, that this cursor located in macros
}
}
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140506/1f8d5116/attachment.html>
More information about the cfe-dev
mailing list