Fix run-clang-tidy.sh
This commit is contained in:
parent
4383cf1114
commit
d91a7358c0
@ -23,6 +23,7 @@ Checks: |
|
|||||||
-cppcoreguidelines-pro-type-vararg,
|
-cppcoreguidelines-pro-type-vararg,
|
||||||
-misc-macro-parentheses,
|
-misc-macro-parentheses,
|
||||||
-misc-unused-raii
|
-misc-unused-raii
|
||||||
|
#WarningsAsErrors: '*'
|
||||||
WarningsAsErrors: ''
|
WarningsAsErrors: ''
|
||||||
HeaderFilterRegex: '/src/|/test/'
|
HeaderFilterRegex: '/src/|/test/'
|
||||||
CheckOptions:
|
CheckOptions:
|
||||||
|
@ -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
|
# 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%/*}"
|
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)/.*" $@
|
run-clang-tidy.py -j${NUMCORES} -quiet -header-filter "$(realpath ${0%/*})/(src|test)/.*" $@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user