Update outdated clang-tidy instructions

This commit is contained in:
Robert Schulze 2022-04-23 22:11:04 +02:00
parent c33d66a31a
commit 63221c8779
No known key found for this signature in database
GPG Key ID: 15C08E29800B665D

View File

@ -1,15 +1,2 @@
# http://clang.llvm.org/extra/clang-tidy/
# Install latest clang with extra tools.
# Look at ci/build-clang-from-sources.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
# clang-tidy has been integrated into CMake:
# --> Build ClickHouse with -DENABLE_CLANG_TIDY=1 and see cmake/analysis.cmake for details