diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:32 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:32 +0000 |
commit | 3453bf7da9ac88cd2421b7fdccebf5cd2b8a9d87 (patch) | |
tree | 69ea08477d69af589f1622071c35942ba38e2e61 /test/Index/annotate-tokens-pp.c | |
parent | c059f89d888cd214e18ed09a7b47339201526381 (diff) |
[libclang] When annotating preprocessor tokens, if we are in a macro definition,
check if the token was ever a macro name and annotate it if that's the case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/annotate-tokens-pp.c')
-rw-r--r-- | test/Index/annotate-tokens-pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/annotate-tokens-pp.c b/test/Index/annotate-tokens-pp.c index 2ebc58fc60..7da2d6f582 100644 --- a/test/Index/annotate-tokens-pp.c +++ b/test/Index/annotate-tokens-pp.c @@ -47,7 +47,7 @@ struct A // CHECK: Punctuation: "#" [2:1 - 2:2] preprocessing directive= // CHECK: Identifier: "define" [2:2 - 2:8] preprocessing directive= // CHECK: Identifier: "STILL_NOTHING" [2:9 - 2:22] macro definition=STILL_NOTHING -// CHECK: Identifier: "NOTHING" [2:23 - 2:30] macro definition=STILL_NOTHING +// CHECK: Identifier: "NOTHING" [2:23 - 2:30] macro expansion=NOTHING:1:9 // CHECK: Punctuation: "(" [2:30 - 2:31] macro definition=STILL_NOTHING // CHECK: Identifier: "honk" [2:31 - 2:35] macro definition=STILL_NOTHING // CHECK: Punctuation: "," [2:35 - 2:36] macro definition=STILL_NOTHING |