summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-19 21:46:24 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-19 21:46:24 +0000
commitaa21cc401b001b67b234c8dc2edaad1fd3210040 (patch)
tree4bb0ba8b695f453d78ed548411d5207fcbe39ad3 /clang/test
parent0edf6a11313c4df7fded529a389299b311f06943 (diff)
downloadbcm5719-llvm-aa21cc401b001b67b234c8dc2edaad1fd3210040.tar.gz
bcm5719-llvm-aa21cc401b001b67b234c8dc2edaad1fd3210040.zip
Introduce a new libclang API, clang_reparseTranslationUnit(), which
reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. llvm-svn: 108756
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Index/cindex-from-source.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Index/cindex-from-source.m b/clang/test/Index/cindex-from-source.m
index 86e794db891..f226e453353 100644
--- a/clang/test/Index/cindex-from-source.m
+++ b/clang/test/Index/cindex-from-source.m
@@ -7,3 +7,6 @@
// CHECK: cindex-from-source.m:9:1: TypeRef=t0:1:13 Extent=[9:1 - 9:3]
struct s0 {};
t0 g0;
+
+// RUN: c-index-test -test-load-source-reparse 5 local %s -include %t.pfx.h > %t
+// RUN: FileCheck %s < %t
OpenPOWER on IntegriCloud