clang-tidy.sh 361 B

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