Disable '-clang-analyzer-unix.Malloc' for now

This commit is contained in:
Robert Schulze 2023-09-27 08:51:17 +00:00
parent cde10fe7b5
commit 3e0bc6fe42
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 2 additions and 1 deletions

View File

@ -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-*,

View File

@ -126,7 +126,6 @@ MergeTreeIndexGranulePtr MergeTreeIndexAggregatorAnnoy<Distance>::getGranuleAndR
{
int threads = (max_threads_for_creation == 0) ? -1 : static_cast<int>(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<int>(trees), threads);
auto granule = std::make_shared<MergeTreeIndexGranuleAnnoy<Distance>>(index_name, index_sample_block, index);
index = nullptr;