Skip to content

Commit

Permalink
ci clang-tidy (#2025)
Browse files Browse the repository at this point in the history
Signed-off-by: turuslan <[email protected]>
  • Loading branch information
turuslan authored Apr 4, 2024
1 parent 9ffb9be commit a1dec68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion housekeeping/clang-tidy-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
BUILD_DIR="${BUILD_DIR:-build}"

cd $(dirname $0)/..
git diff -U0 HEAD^ | clang-tidy-diff.py -p1 -path $BUILD_DIR -regex "\.(hpp|h)"
git diff -U0 origin/master | clang-tidy-diff.py -p1 -path $BUILD_DIR -iregex '(core|node)\/.*\.(h|c|hpp|cpp)' | tee clang-tidy.log
! grep ': error:' clang-tidy.log

0 comments on commit a1dec68

Please sign in to comment.