mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Updated instruction to run clang-tidy [#CLICKHOUSE-3301].
This commit is contained in:
parent
d19d9f8589
commit
f1c98dac3c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user