diff options
Diffstat (limited to 'clang-tidy.sh')
-rwxr-xr-x | clang-tidy.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-tidy.sh b/clang-tidy.sh index 43da93618..86a71521b 100755 --- a/clang-tidy.sh +++ b/clang-tidy.sh @@ -6,10 +6,14 @@ FIXES_FILE="tidy-fixes.yaml" REGEX="/cuberite/src/\.?[^\.]" ARGS="-header-filter $REGEX -quiet -export-fixes $FIXES_FILE "$@" $REGEX" +# Generate the compilation database mkdir -p tidy-build cd tidy-build cmake --target Cuberite -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. +# Ensure LuaState_Typedefs.inc has been generated +(cd ../src/Bindings && lua BindingsProcessor.lua) + if run-clang-tidy $ARGS; then echo "clang-tidy: No violations found" else |