diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:25 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:25 +0000 |
commit | 579825a50aad9759912f349fd9f52c8961056dd3 (patch) | |
tree | 4d422a1bf72d7cd1103b8e9bce377f8ffd4d0fb6 /clang/test/Index/annotate-nested-name-specifier.cpp | |
parent | 7572be2e447b8b1762479a58b4dc3617db0ce120 (diff) | |
download | bcm5719-llvm-579825a50aad9759912f349fd9f52c8961056dd3.tar.gz bcm5719-llvm-579825a50aad9759912f349fd9f52c8961056dd3.zip |
[libclang] When getting the cursor for an identifier inside a macro definition, check if
this was ever a macro name and return a specific CXCursor_MacroExpansion cursor in such a case,
instead of the generic CXCursor_MacroDefinition.
Checking for macro name makes sure the identifier is not part of the identifier list in a
function macro.
While, in general, resolving identifiers in macro definitions to other macros may not be completely accurate,
it greatly improves functionality such as give-me-the-definition-of-this, which was not working at all
inside macro definitions.
llvm-svn: 171773
Diffstat (limited to 'clang/test/Index/annotate-nested-name-specifier.cpp')
0 files changed, 0 insertions, 0 deletions