diff options
-rwxr-xr-x | clang-tidy.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/clang-tidy.sh b/clang-tidy.sh index ec9a226a6..a0a1ff537 100755 --- a/clang-tidy.sh +++ b/clang-tidy.sh @@ -2,9 +2,16 @@ set -e +LOCALSTRING="local" + +if [ "$3" = "$LOCALSTRING" ]; then + REGEX="/cuberite/src/\.?[^\.]" +else + REGEX="cuberite_[^/\.]+/src/\.?[^\.]" +fi + FIXES_FILE="tidy-fixes.yaml" -REGEX="cuberite_[^/\.]+/src/\.?[^\.]" -ARGS="-header-filter $REGEX -quiet -export-fixes $FIXES_FILE "$@" $REGEX" +ARGS="-header-filter $REGEX -quiet -export-fixes $FIXES_FILE $* $REGEX" # Generate the compilation database mkdir -p tidy-build |