summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens.m
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-07 19:16:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-07 19:16:27 +0000
commit98a8874a0d09c0b58f7cfce38365b7a119a73edd (patch)
treebf728a7b1854431fe22d5807ea2db557d187b00f /clang/test/Index/annotate-tokens.m
parent579825a50aad9759912f349fd9f52c8961056dd3 (diff)
downloadbcm5719-llvm-98a8874a0d09c0b58f7cfce38365b7a119a73edd.tar.gz
bcm5719-llvm-98a8874a0d09c0b58f7cfce38365b7a119a73edd.zip
[libclang] Make token annotation of type/storage qualifiers accurate.
Previously type/storage qualifiers would not be annotated as the declaration they belonged to. Just use the resulting source range of getRawCursorExtent() which is more correct than what AnnotateTokensWorker::Visit() was adjusting it to. llvm-svn: 171774
Diffstat (limited to 'clang/test/Index/annotate-tokens.m')
-rw-r--r--clang/test/Index/annotate-tokens.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/annotate-tokens.m b/clang/test/Index/annotate-tokens.m
index 1a48293dfc4..7e888e394cb 100644
--- a/clang/test/Index/annotate-tokens.m
+++ b/clang/test/Index/annotate-tokens.m
@@ -480,7 +480,7 @@ static Rdar8595462_A * Rdar8595462_staticVar;
// CHECK: Identifier: "localVar" [100:10 - 100:18] DeclRefExpr=localVar:99:19
// CHECK: Punctuation: ";" [100:18 - 100:19] CompoundStmt=
// CHECK: Punctuation: "}" [101:1 - 101:2] CompoundStmt=
-// CHECK: Keyword: "static" [102:1 - 102:7] ObjCImplementationDecl=Rdar8595462_B:97:17 (Definition)
+// CHECK: Keyword: "static" [102:1 - 102:7] VarDecl=Rdar8595462_staticVar:102:24
// CHECK: Identifier: "Rdar8595462_A" [102:8 - 102:21] ObjCClassRef=Rdar8595462_A:93:8
// CHECK: Punctuation: "*" [102:22 - 102:23] VarDecl=Rdar8595462_staticVar:102:24
// CHECK: Identifier: "Rdar8595462_staticVar" [102:24 - 102:45] VarDecl=Rdar8595462_staticVar:102:24
OpenPOWER on IntegriCloud