From b7553d5f4147f7ca90391e69535b1d076239b94a Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 9 Sep 2024 17:42:15 +0200 Subject: [PATCH] [clang-tidy] disable cppcoreguidelines-no-malloc,hicpp-no-malloc The project is mostly C so the C++ components are expected to wrap the C allocation. This check does only produce false positives in our use case. --- .clang-tidy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index e1c7a859e..fa793d68c 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -37,6 +37,7 @@ Checks: > -cppcoreguidelines-avoid-non-const-global-variables, -cppcoreguidelines-macro-to-enum, -cppcoreguidelines-pro-type-vararg, + -cppcoreguidelines-no-malloc, -google-readability-braces-around-statements, -google-readability-todo, -hicpp-braces-around-statements, @@ -45,6 +46,7 @@ Checks: > -hicpp-signed-bitwise, -hicpp-uppercase-literal-suffix, -hicpp-vararg, + -hicpp-no-malloc, -llvm-header-guard, -llvm-include-order, -llvm-qualified-auto,