diff --git a/.clang-tidy b/.clang-tidy index 03aecb8f09d..3903911a277 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -38,6 +38,8 @@ Checks: '*, -cert-oop54-cpp, -cert-oop57-cpp, + -clang-analyzer-unix.Malloc, + -cppcoreguidelines-*, # impractical in a codebase as large as ClickHouse, also slow -darwin-*, diff --git a/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp b/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp index 02fa1de1304..4411d46e124 100644 --- a/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp +++ b/src/Storages/MergeTree/MergeTreeIndexAnnoy.cpp @@ -126,7 +126,6 @@ MergeTreeIndexGranulePtr MergeTreeIndexAggregatorAnnoy::getGranuleAndR { int threads = (max_threads_for_creation == 0) ? -1 : static_cast(max_threads_for_creation); /// clang-tidy reports a false positive: it considers %p with an outdated pointer in fprintf() (used by logging which we don't do) dereferencing - // NOLINTNEXTLINE(clang-analyzer-unix.Malloc) index->build(static_cast(trees), threads); auto granule = std::make_shared>(index_name, index_sample_block, index); index = nullptr;