Fix run-clang-tidy.sh

This commit is contained in:
Sebastian Messmer 2018-09-29 17:18:30 -07:00
parent 4383cf1114
commit d91a7358c0
2 changed files with 1 additions and 4 deletions

View File

@ -23,6 +23,7 @@ Checks: |
-cppcoreguidelines-pro-type-vararg,
-misc-macro-parentheses,
-misc-unused-raii
#WarningsAsErrors: '*'
WarningsAsErrors: ''
HeaderFilterRegex: '/src/|/test/'
CheckOptions:

View File

@ -13,8 +13,4 @@ NUMCORES=`nproc`
# Run cmake in current working directory, but on source that is in the same directory as this script file
cmake -DBUILD_TESTING=on -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "${0%/*}"
# Build scrypt first. Our Makefiles call ino theirs, and this is needed to generate some header files. Clang-tidy will otherwise complain they're missing.
make -j${NUMCORES} scrypt
run-clang-tidy.py -j${NUMCORES} -quiet -header-filter "$(realpath ${0%/*})/(src|test)/.*" $@