ClickHouse/tests/instructions/clang-tidy.txt

16 lines
432 B
Plaintext
Raw Normal View History

# http://clang.llvm.org/extra/clang-tidy/
# Install latest clang with extra tools.
2018-07-15 18:04:41 +00:00
# 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