summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-pp.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-11-09 06:24:54 +0000
committerDouglas Gregor <dgregor@apple.com>2010-11-09 06:24:54 +0000
commit229bebdeb584d4491e40c9b10a3a22485db5c54a (patch)
tree7a85d32118f793190283ec45c14427f62437dd29 /clang/test/Index/annotate-tokens-pp.c
parent12a610d1fa79c11ff9aec2ae1cdf258ed131ae88 (diff)
downloadbcm5719-llvm-229bebdeb584d4491e40c9b10a3a22485db5c54a.tar.gz
bcm5719-llvm-229bebdeb584d4491e40c9b10a3a22485db5c54a.zip
ntroduce clang_getSpellingLocation() into libclang, to provide the
location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. Take 2: this time, adjusted tests appropriately and used a "simple" approach to the spelling location. llvm-svn: 118495
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 a6e7fb99d60..3dd9ffeddcb 100644
--- a/clang/test/Index/annotate-tokens-pp.c
+++ b/clang/test/Index/annotate-tokens-pp.c
@@ -173,7 +173,7 @@ void test() {
// CHECK: Punctuation: "," [25:26 - 25:27] UnexposedStmt=
// CHECK: Punctuation: "{" [25:28 - 25:29] UnexposedStmt=
// CHECK: Keyword: "int" [25:30 - 25:33] UnexposedStmt=
-// CHECK: Identifier: "z" [25:34 - 25:35] VarDecl=z:25:3 (Definition)
+// CHECK: Identifier: "z" [25:34 - 25:35] VarDecl=z:25:34 (Definition)
// CHECK: Punctuation: "=" [25:36 - 25:37] UnexposedStmt=
// CHECK: Identifier: "x" [25:38 - 25:39] DeclRefExpr=x:24:7
// CHECK: Punctuation: ";" [25:39 - 25:40] UnexposedStmt=
OpenPOWER on IntegriCloud