]> granicus.if.org Git - clang/commit
[libclang] Simplify annotation of preprocessing tokens and remove the AnnotateTokensData
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Jan 2013 19:16:30 +0000 (19:16 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 7 Jan 2013 19:16:30 +0000 (19:16 +0000)
commitc059f89d888cd214e18ed09a7b47339201526381
tree4240f871ee563868aff64ac9bf16587e6d163b79
parente9de485169b76acba3a3cb16399fa3d63e43ec2c
[libclang] Simplify annotation of preprocessing tokens and remove the AnnotateTokensData
DenseMap and the lookups associated with it.

Instead of lexing for preprocessor tokens, associating the annotation with the location in a map,
and later lookup in the map in order to adjust the cursor annotation, just annotate the cursor
while lexing for preprocessor tokens.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171775 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/annotate-tokens-pp.c
tools/libclang/CIndex.cpp