Update clang-tidy.sh (#5477)

This commit is contained in:
x12xx12x 2023-06-05 22:37:47 +02:00 committed by GitHub
parent 26b7e5ad9e
commit 5da44fa4b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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