diff options
author | Manuel Klimek <klimek@google.com> | 2012-04-04 12:07:46 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-04-04 12:07:46 +0000 |
commit | cb971c6726d16e12ecd2a340941d7f5c06698332 (patch) | |
tree | 63f54a02c06faaf2297917a6e475852f1e959747 /unittests/CMakeLists.txt | |
parent | c9aa9c00fc99ded37a064d607b71815484e20652 (diff) | |
download | clang-cb971c6726d16e12ecd2a340941d7f5c06698332.tar.gz |
Adds a tooling library.
Provides an API to run clang tools (FrontendActions) as standalone tools,
or repeatedly in-memory in a process. This is useful for unit-testing,
map-reduce style applications, source transformation daemons or command line
tools.
The ability to run over multiple translation units with different command
line arguments enables building up refactoring tools that need to apply
transformations across translation unit boundaries.
See tools/clang-check/ClangCheck.cpp for an example.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/CMakeLists.txt')
-rw-r--r-- | unittests/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index e64fa1c722..0b3eac95d4 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -65,3 +65,9 @@ add_clang_unittest(Frontend Frontend/FrontendActionTest.cpp USED_LIBS gtest gtest_main clangFrontend ) + +add_clang_unittest(Tooling + Tooling/CompilationDatabaseTest.cpp + Tooling/ToolingTest.cpp + USED_LIBS gtest gtest_main clangTooling + ) |