summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-pp.c
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-07 19:16:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-07 19:16:32 +0000
commit68d31ce5ff33c987104431efa45c30cfe53df27f (patch)
treed74e6990d35dfd5f081809928276621f64f6ff40 /clang/test/Index/annotate-tokens-pp.c
parent2d77aeb946c6c11fa70d3446948871579fb81940 (diff)
downloadbcm5719-llvm-68d31ce5ff33c987104431efa45c30cfe53df27f.tar.gz
bcm5719-llvm-68d31ce5ff33c987104431efa45c30cfe53df27f.zip
[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. llvm-svn: 171776
Diffstat (limited to 'clang/test/Index/annotate-tokens-pp.c')
-rw-r--r--clang/test/Index/annotate-tokens-pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/annotate-tokens-pp.c b/clang/test/Index/annotate-tokens-pp.c
index 2ebc58fc60b..7da2d6f5823 100644
--- a/clang/test/Index/annotate-tokens-pp.c
+++ b/clang/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
OpenPOWER on IntegriCloud