]> granicus.if.org Git - clang/commit
[libclang] Make token annotation of type/storage qualifiers accurate.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Jan 2013 19:16:27 +0000 (19:16 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Jan 2013 19:16:27 +0000 (19:16 +0000)
commite9de485169b76acba3a3cb16399fa3d63e43ec2c
tree17553e28ccd467d71521a07dc3657a01bdd35ee3
parent664b06f9bd2ea83443ddc8553feba8ba48880752
[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
test/Index/IBOutletCollection.m
test/Index/annotate-context-sensitive.cpp
test/Index/annotate-nested-name-specifier.cpp
test/Index/annotate-tokens.c
test/Index/annotate-tokens.m
test/Index/recursive-cxx-member-calls.cpp
tools/libclang/CIndex.cpp