How to check the source files only 1 times with run-clang-tidy?
I have an header only library with one example and one test source.
I create a “Ninja Multi-Config” generator with this types:
CMAKE_CONFIGURATION_TYPES=“Debug;RelWithDebInfo;Coverage;Asan;Lsan;Usan”
bash-5.2$ find . -name compile_commands.json
./compile_commands.json
bash-5.2$ grep -w file compile_commands.json
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/build/beman_inplace_vector_verify_interface_header_sets/beman/inplace_vector/inplace_vector.hpp.cxx",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/tests/beman/inplace_vector/inplace_vector.test.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
"file": "/Users/clausklein/Workspace/cpp/beman-project/inplace_vector/examples/fibonacci.cpp",
bash-5.2$ cd ..
bash-5.2$ cmake --list-presets
Available configure presets:
"debug" - Debug Build
"release" - Release Build
"gcov" - Coverage Build
"asan" - AddressSanitizer Build
"lsan" - LeakSanitizer Build
"usan" - UndefinedSanitizer Build
bash-5.2$