Updated instruction to run clang-tidy [#CLICKHOUSE-3301].

This commit is contained in:
Alexey Milovidov 2017-09-08 05:42:47 +03:00
parent d19d9f8589
commit f1c98dac3c

View File

@ -8,4 +8,7 @@ CC=clang CXX=clang++ cmake ..
cd ..
jq '.[] | .file' build/compile_commands.json | grep -v -F 'contrib' | head -n1 | xargs -I{} clang-tidy {} -p build -header-filter='dbms|libs' -checks='boost-*,bugprone-*,clang-analyzer-*,performance-*'
for i in $(jq --raw-output '.[] | .file' build/compile_commands.json | grep -v -F 'contrib'); do
echo "$i";
clang-tidy "$i" -p build -header-filter='dbms|libs' -checks='boost-*,bugprone-*,clang-analyzer-*,performance-*';
done