From aa21cc401b001b67b234c8dc2edaad1fd3210040 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 19 Jul 2010 21:46:24 +0000 Subject: 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 --- clang/test/Index/cindex-from-source.m | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/test') 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 -- cgit v1.2.3