From 796d76a663795d66ed5aa97a1f585514dd68b043 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 20 Oct 2010 22:00:55 +0000 Subject: Extend the preprocessing record and libclang with support for inclusion directives, keeping track of every #include, #import, etc. in the translation unit. We keep track of the source location and kind of the inclusion, how the file name was spelled, and the underlying file to which the inclusion resolved. llvm-svn: 116952 --- clang/test/Index/annotate-tokens-pp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/test/Index/annotate-tokens-pp.c') diff --git a/clang/test/Index/annotate-tokens-pp.c b/clang/test/Index/annotate-tokens-pp.c index 55ee7630eb3..631caab839c 100644 --- a/clang/test/Index/annotate-tokens-pp.c +++ b/clang/test/Index/annotate-tokens-pp.c @@ -68,7 +68,7 @@ void test() { // CHECK: Identifier: "BAR" [6:5 - 6:8] macro instantiation=BAR:3:9 // CHECK: Identifier: "STILL_NOTHING" [6:9 - 6:22] macro instantiation=STILL_NOTHING:2:9 // CHECK: Punctuation: ";" [6:22 - 6:23] -// CHECK: Punctuation: "#" [7:1 - 7:2] preprocessing directive= +// CHECK: Punctuation: "#" [7:1 - 7:2] inclusion directive=foo.h // CHECK: Identifier: "include" [7:2 - 7:9] preprocessing directive= // CHECK: Literal: ""foo.h"" [7:10 - 7:17] preprocessing directive= // CHECK: Punctuation: "#" [8:1 - 8:2] preprocessing directive= -- cgit v1.2.3