Skip to content

Commit

Permalink
Try run custom clang-tidy checks in src
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettDong committed Mar 31, 2023
1 parent c0f5572 commit 9712b10
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9712b10

Please sign in to comment.