Skip to content

Commit

Permalink
Update clang-tidy.sh (#5477)
Browse files Browse the repository at this point in the history
  • Loading branch information
12xx12 committed Jun 5, 2023
1 parent 26b7e5a commit 5da44fa
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5da44fa

Please sign in to comment.