Ready-to-use environment that makes it easy to develop LibTooling-based tools, inspired by clang-tutor.
-
Add new tools to src and modify
CMakeFiles.txt
accordingly. -
To build tools, run
cmake-config.sh
first, thencd build && make
.CMAKE_BUILD_TYPE
is set toRelWithDebInfo
by default. -
To use different LLVM/Clang versions, set the env var
LLVM_CONFIG
before you runcmake-config.sh
, e.g.,LLVM_CONFIG=llvm-config-15 ./cmake-config.sh
if you want to use LLVM-15/clang-15. By default,llvm-config
is used.