]> granicus.if.org Git - clang/commit
Adds a tooling library.
authorManuel Klimek <klimek@google.com>
Wed, 4 Apr 2012 12:07:46 +0000 (12:07 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 4 Apr 2012 12:07:46 +0000 (12:07 +0000)
commitcb971c6726d16e12ecd2a340941d7f5c06698332
tree63f54a02c06faaf2297917a6e475852f1e959747
parentc9aa9c00fc99ded37a064d607b71815484e20652
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
19 files changed:
include/clang/Tooling/CompilationDatabase.h [new file with mode: 0644]
include/clang/Tooling/Tooling.h [new file with mode: 0644]
lib/CMakeLists.txt
lib/Makefile
lib/Tooling/CMakeLists.txt [new file with mode: 0644]
lib/Tooling/CompilationDatabase.cpp [new file with mode: 0644]
lib/Tooling/Makefile [new file with mode: 0644]
lib/Tooling/Tooling.cpp [new file with mode: 0644]
test/Tooling/clang-check.cpp [new file with mode: 0644]
tools/CMakeLists.txt
tools/Makefile
tools/clang-check/CMakeLists.txt [new file with mode: 0644]
tools/clang-check/ClangCheck.cpp [new file with mode: 0644]
tools/clang-check/Makefile [new file with mode: 0644]
unittests/CMakeLists.txt
unittests/Makefile
unittests/Tooling/CompilationDatabaseTest.cpp [new file with mode: 0644]
unittests/Tooling/Makefile [new file with mode: 0644]
unittests/Tooling/ToolingTest.cpp [new file with mode: 0644]