mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
16 lines
444 B
Plaintext
16 lines
444 B
Plaintext
# http://clang.llvm.org/extra/clang-tidy/
|
|
# Install latest clang with extra tools.
|
|
# Look at utils/prepare-environment/install-clang.sh
|
|
|
|
sudo apt-get install jq
|
|
|
|
cd build
|
|
CC=clang CXX=clang++ cmake ..
|
|
|
|
cd ..
|
|
|
|
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
|