Skip to content

Commit

Permalink
Add clang-tidy script that runs on all files in parallel
Browse files Browse the repository at this point in the history
Extra options are forwarded to clang-tidy

For example: ./tools/check-clang-tidy.sh --checks '-*,readability-braces-around-statements' --fix
  • Loading branch information
pajlada committed Jul 1, 2023
1 parent 2f272b3 commit d6cb523
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/check-clang-tidy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eu

clang-tidy --version

find src/ -type f \( -name "*.hpp" -o -name "*.cpp" \) -print0 | parallel -0 -I {} clang-tidy --quiet "$@" "{}"

0 comments on commit d6cb523

Please sign in to comment.