diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 998e1bde42658..2be19166f9185 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -66,8 +66,16 @@ jobs: -D CATA_CLANG_TIDY_PLUGIN=ON \ -D LLVM_DIR="${LLVM_DIR}" \ -D Clang_DIR="${CLANG_DIR}" + -D CMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -D TILES=ON \ + -D SOUND=ON \ -G Ninja ninja -C build libCataAnalyzerPlugin.so - name: test clang-tidy plugin run: | lit -v build/tools/clang-tidy-plugin/test + - name: run clang-tidy in src + run: | + parallel --linebuffer --bar clang-tidy -p build \ + --load=build/tools/clang-tidy-plugin/libCataAnalyzerPlugin.so \ + --checks="-*,cata-*" --use-color --quiet ::: src/*.cpp