From 63221c877979a2805e144af402202e31876a1df0 Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Sat, 23 Apr 2022 22:11:04 +0200 Subject: [PATCH] Update outdated clang-tidy instructions --- tests/instructions/clang-tidy.txt | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/tests/instructions/clang-tidy.txt b/tests/instructions/clang-tidy.txt index 83e6045bf22..9e9f8cafede 100644 --- a/tests/instructions/clang-tidy.txt +++ b/tests/instructions/clang-tidy.txt @@ -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