Test project for refactoring experiments using clang-tidy and related tools e.g. autotidy.
- C++ compiler
- CMake
- clang-tidy
- autotidy
-
Run CMake to generate clang tooling compile_commands.json database
cmake -S . -B _build
-
Run
clang-tidy/tool/run-clang-tidy.py
run-clang-tidy-7.py -p=_build -header-filter=test/.* > clang-tidy.log 2>&1
The script executes clang-tidy with the default set of checks on every translation unit in the compile_commands.json and displays the resulting warnings and errors.
-
Run autotidy to start interactive refactoring session based on previously generated
clang-tidy.log
tidy clang-tidy.log