mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-07 03:16:55 +08:00
Update clang-tidy.sh (#5477)
This commit is contained in:
parent
26b7e5ad9e
commit
5da44fa4b9
@ -2,9 +2,16 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
LOCALSTRING="local"
|
||||||
|
|
||||||
|
if [ "$3" = "$LOCALSTRING" ]; then
|
||||||
|
REGEX="/cuberite/src/\.?[^\.]"
|
||||||
|
else
|
||||||
|
REGEX="cuberite_[^/\.]+/src/\.?[^\.]"
|
||||||
|
fi
|
||||||
|
|
||||||
FIXES_FILE="tidy-fixes.yaml"
|
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
|
# Generate the compilation database
|
||||||
mkdir -p tidy-build
|
mkdir -p tidy-build
|
||||||
|
Loading…
Reference in New Issue
Block a user