clang-tidy.sh 345 B

12345678910111213
  1. #! /bin/bash -eu
  2. cmake -B build -DCMAKE_BUILD_TYPE=Debug \
  3. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
  4. -DRUN_IN_PLACE=TRUE \
  5. -DENABLE_{GETTEXT,SOUND}=FALSE \
  6. -DBUILD_SERVER=TRUE
  7. cmake --build build --target GenerateVersion
  8. ./util/ci/run-clang-tidy.py \
  9. -clang-tidy-binary=clang-tidy-9 -p build \
  10. -quiet -config="$(cat .clang-tidy)" \
  11. 'src/.*'