diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:27 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:27 +0000 |
commit | e9de485169b76acba3a3cb16399fa3d63e43ec2c (patch) | |
tree | 17553e28ccd467d71521a07dc3657a01bdd35ee3 /test/Index/annotate-tokens.c | |
parent | 664b06f9bd2ea83443ddc8553feba8ba48880752 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/annotate-tokens.c')
-rw-r--r-- | test/Index/annotate-tokens.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/annotate-tokens.c b/test/Index/annotate-tokens.c index 0b5f3d4773..565283f343 100644 --- a/test/Index/annotate-tokens.c +++ b/test/Index/annotate-tokens.c @@ -74,7 +74,7 @@ enum Color g(int i, ...) { // CHECK: Punctuation: "&" [8:22 - 8:23] UnaryOperator= // CHECK: Identifier: "x" [8:23 - 8:24] DeclRefExpr=x:7:12 // CHECK: Punctuation: ";" [8:24 - 8:25] DeclStmt= -// CHECK: Keyword: "const" [9:3 - 9:8] DeclStmt= +// CHECK: Keyword: "const" [9:3 - 9:8] VarDecl=hello:9:16 (Definition) // CHECK: Keyword: "char" [9:9 - 9:13] VarDecl=hello:9:16 (Definition) // CHECK: Punctuation: "*" [9:14 - 9:15] VarDecl=hello:9:16 (Definition) // CHECK: Identifier: "hello" [9:16 - 9:21] VarDecl=hello:9:16 (Definition) |