From 6254bf4aded7574f297d7eaa82e54702b3820366 Mon Sep 17 00:00:00 2001 From: Gabor Horvath Date: Fri, 22 Sep 2017 11:11:01 +0000 Subject: Add Cross Translation Unit support library This patch introduces a class that can help to build tools that require cross translation unit facilities. This class allows function definitions to be loaded from external AST files based on an index. In order to use this functionality an index is required. The index format is a flat text file but it might be replaced with a different solution in the near future. USRs are used as names to look up the functions definitions. This class also does caching to avoid redundant loading of AST files. Right now only function defnitions can be loaded using this API because this is what the in progress cross translation unit feature of the Static Analyzer requires. In to future this might be extended to classes, types etc. Differential Revision: https://reviews.llvm.org/D34512 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313975 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'unittests/CMakeLists.txt') diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index b622d66af4..090de3b06e 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -19,6 +19,7 @@ if(CLANG_ENABLE_STATIC_ANALYZER) endif() add_subdirectory(ASTMatchers) add_subdirectory(AST) +add_subdirectory(CrossTU) add_subdirectory(Tooling) add_subdirectory(Format) add_subdirectory(Rewrite) -- cgit v1.2.1