diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:39:57 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:39:57 +0000 |
commit | b4199b659bca6f9a18f9b42687406b3844d37381 (patch) | |
tree | a610a42167be95dab530d38ca1833663b408c5ed /clang/test/Index/annotate-tokens-pp.c | |
parent | b527a7cbf8cf24bc3472db86e5d90d931544ce00 (diff) | |
download | bcm5719-llvm-b4199b659bca6f9a18f9b42687406b3844d37381.tar.gz bcm5719-llvm-b4199b659bca6f9a18f9b42687406b3844d37381.zip |
For SourceManager::isBeforeInTranslationUnit, a location pointing
inside a macro argument should be regarded as coming before
the location of the expanded tokens.
llvm-svn: 140053
Diffstat (limited to 'clang/test/Index/annotate-tokens-pp.c')
-rw-r--r-- | clang/test/Index/annotate-tokens-pp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/Index/annotate-tokens-pp.c b/clang/test/Index/annotate-tokens-pp.c index 1d0657894eb..ecdabb6dbc9 100644 --- a/clang/test/Index/annotate-tokens-pp.c +++ b/clang/test/Index/annotate-tokens-pp.c @@ -122,7 +122,8 @@ const char *fname = __FILE__; // CHECK: Identifier: "t" [16:25 - 16:26] DeclRefExpr=t:15:7 // CHECK: Punctuation: "," [16:26 - 16:27] // CHECK: Identifier: "z" [16:27 - 16:28] DeclRefExpr=z:14:7 -// CHECK: Punctuation: ")" [16:28 - 16:29] UnexposedStmt= +// FIXME: The token below should really be annotated as "macro expansion=REVERSE_MACRO:10:9" +// CHECK: Punctuation: ")" [16:28 - 16:29] VarDecl=k:16:7 (Definition) // CHECK: Punctuation: ";" [16:29 - 16:30] UnexposedStmt= // CHECK: Keyword: "int" [17:3 - 17:6] VarDecl=j:17:7 (Definition) // CHECK: Identifier: "j" [17:7 - 17:8] VarDecl=j:17:7 (Definition) @@ -132,7 +133,8 @@ const char *fname = __FILE__; // CHECK: Identifier: "k" [17:23 - 17:24] DeclRefExpr=k:16:7 // CHECK: Punctuation: "+" [17:25 - 17:26] UnexposedExpr= // CHECK: Identifier: "k" [17:27 - 17:28] DeclRefExpr=k:16:7 -// CHECK: Punctuation: ")" [17:28 - 17:29] UnexposedStmt= +// FIXME: The token below should really be annotated as "macro expansion=TWICE_MACRO:11:9" +// CHECK: Punctuation: ")" [17:28 - 17:29] VarDecl=j:17:7 (Definition) // CHECK: Punctuation: ";" [17:29 - 17:30] UnexposedStmt= // CHECK: Keyword: "int" [18:3 - 18:6] VarDecl=w:18:7 (Definition) // CHECK: Identifier: "w" [18:7 - 18:8] VarDecl=w:18:7 (Definition) |