[libclang] Resolve a cursor that points to a macro name inside a #ifdef/#ifndef
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 8 Dec 2012 02:21:17 +0000 (02:21 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 8 Dec 2012 02:21:17 +0000 (02:21 +0000)
commitf77b0f888690e056e7da4efe94f5e97f996f6b05
tree56d4908f75d242c4859a5d2b610a7ab7289f7c96
parent222a7bbf0ded69b369d05dbeeceef0d86cbb0f37
[libclang] Resolve a cursor that points to a macro name inside a #ifdef/#ifndef
directive as a macro expansion.

This is more of a "macro reference" than a macro expansion but it's close enough
for libclang's purposes. If it causes issues we can revisit and introduce a new
kind of cursor.

llvm-svn: 169666
clang/include/clang/Lex/PreprocessingRecord.h
clang/lib/Lex/PreprocessingRecord.cpp
clang/test/Index/c-index-getCursor-pp.c