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 | 664b06f9bd2ea83443ddc8553feba8ba48880752 (patch) | |
tree | 32ee70458994744d3be3d967d541dfe84bea86ab /test/SemaCXX/c99-variable-length-array-cxx11.cpp | |
parent | 8169b671974fc15b6059b1e9532f7f3207d79786 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171773 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/c99-variable-length-array-cxx11.cpp')
0 files changed, 0 insertions, 0 deletions