diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:30 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-07 19:16:30 +0000 |
commit | c059f89d888cd214e18ed09a7b47339201526381 (patch) | |
tree | 4240f871ee563868aff64ac9bf16587e6d163b79 /test/Index/annotate-tokens-pp.c | |
parent | e9de485169b76acba3a3cb16399fa3d63e43ec2c (diff) |
[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
Diffstat (limited to 'test/Index/annotate-tokens-pp.c')
-rw-r--r-- | test/Index/annotate-tokens-pp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Index/annotate-tokens-pp.c b/test/Index/annotate-tokens-pp.c index b7c0a8030b..2ebc58fc60 100644 --- a/test/Index/annotate-tokens-pp.c +++ b/test/Index/annotate-tokens-pp.c @@ -192,7 +192,7 @@ struct A // CHECK: Identifier: "x" [25:25 - 25:26] DeclRefExpr=x:24:7 // CHECK: Punctuation: "," [25:26 - 25:27] // CHECK: Punctuation: "{" [25:28 - 25:29] CompoundStmt= -// CHECK: Keyword: "int" [25:30 - 25:33] DeclStmt= +// CHECK: Keyword: "int" [25:30 - 25:33] VarDecl=z:25:34 (Definition) // CHECK: Identifier: "z" [25:34 - 25:35] VarDecl=z:25:34 (Definition) // CHECK: Punctuation: "=" [25:36 - 25:37] VarDecl=z:25:34 (Definition) // CHECK: Identifier: "x" [25:38 - 25:39] DeclRefExpr=x:24:7 |