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 | 98a8874a0d09c0b58f7cfce38365b7a119a73edd (patch) | |
tree | bf728a7b1854431fe22d5807ea2db557d187b00f /clang/test/Index/annotate-context-sensitive.cpp | |
parent | 579825a50aad9759912f349fd9f52c8961056dd3 (diff) | |
download | bcm5719-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-context-sensitive.cpp')
-rw-r--r-- | clang/test/Index/annotate-context-sensitive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Index/annotate-context-sensitive.cpp b/clang/test/Index/annotate-context-sensitive.cpp index 34e67a2264b..57e678310ff 100644 --- a/clang/test/Index/annotate-context-sensitive.cpp +++ b/clang/test/Index/annotate-context-sensitive.cpp @@ -27,7 +27,7 @@ struct Derived2 : Base2 { // CHECK-OVERRIDE-FINAL: Keyword: "public" [6:23 - 6:29] C++ base class specifier=class Base:1:7 [access=public isVirtual=false] // CHECK-OVERRIDE-FINAL: Identifier: "Base" [6:30 - 6:34] TypeRef=class Base:1:7 // CHECK-OVERRIDE-FINAL: Punctuation: "{" [6:35 - 6:36] ClassDecl=Derived:6:7 (Definition) -// CHECK-OVERRIDE-FINAL: Keyword: "virtual" [7:3 - 7:10] ClassDecl=Derived:6:7 (Definition) +// CHECK-OVERRIDE-FINAL: Keyword: "virtual" [7:3 - 7:10] CXXMethod=f:7:16 (virtual) [Overrides @3:16] // CHECK-OVERRIDE-FINAL: Keyword: "void" [7:11 - 7:15] CXXMethod=f:7:16 (virtual) [Overrides @3:16] // CHECK-OVERRIDE-FINAL: Identifier: "f" [7:16 - 7:17] CXXMethod=f:7:16 (virtual) [Overrides @3:16] // CHECK-OVERRIDE-FINAL: Punctuation: "(" [7:17 - 7:18] CXXMethod=f:7:16 (virtual) [Overrides @3:16] |