aboutsummaryrefslogtreecommitdiff
path: root/test/Index/annotate-tokens-include.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-10-21 06:10:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-10-21 06:10:04 +0000
commit4419b675577d7c281a659fab1fec10e1bfbe04c5 (patch)
tree0e1b7665a0894faa04ebf94bdbd4bc48b2f9cd1a /test/Index/annotate-tokens-include.c
parent13f8cbfbd273999c75999947689234a385514469 (diff)
Improve the implementation of libclang's token-annotation logic for
entities in the preprocessing record. Previously, we would only end up getting the first token of a preprocessing record annotated correctly. For example, given #include "foo.h" we would only get the '#' annotated as an inclusion directive; the 'include' and '"foo.h"' tokens would be given the general 'processing directive' annotation. Now, we get proper annotations for entities in the preprocessing record. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/annotate-tokens-include.c')
-rw-r--r--test/Index/annotate-tokens-include.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Index/annotate-tokens-include.c b/test/Index/annotate-tokens-include.c
index b60c1af181..2190125c09 100644
--- a/test/Index/annotate-tokens-include.c
+++ b/test/Index/annotate-tokens-include.c
@@ -2,6 +2,6 @@
// RUN: c-index-test -test-annotate-tokens=%s:1:1:2:1 %s | FileCheck %s
// CHECK: Punctuation: "#" [1:1 - 1:2] inclusion directive=annotate-tokens-include.h
-// CHECK: Identifier: "include" [1:2 - 1:9] preprocessing directive=
-// CHECK: Literal: ""annotate-tokens-include.h"" [1:10 - 1:37] preprocessing directive=
+// CHECK: Identifier: "include" [1:2 - 1:9] inclusion directive=annotate-tokens-include.h
+// CHECK: Literal: ""annotate-tokens-include.h"" [1:10 - 1:37] inclusion directive=annotate-tokens-include.h