From 6d71e119a2294248f738eb271bedd9c3686b4a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Thu, 5 Oct 2023 22:33:52 +0200 Subject: [PATCH] Add suppression for clang-tidy `bugprone-suspicious-realloc-usage` We generally don't handle memory allocation failures. --- .clang-tidy | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 54e86e77b..72f1bbbae 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,6 +16,8 @@ # Crashes: https://github.com/llvm/llvm-project/issues/53359 # misc-use-anonymous-namespace # We don't want to use anonymous namespaces instead of static functions. +# bugprone-suspicious-realloc-usage +# We generally don't handle memory allocation failures. Checks: > -*, @@ -32,6 +34,7 @@ Checks: > -bugprone-reserved-identifier, -bugprone-suspicious-include, -bugprone-unhandled-self-assignment, + -bugprone-suspicious-realloc-usage, clang-analyzer-*, -clang-analyzer-optin.cplusplus.UninitializedObject, -clang-analyzer-optin.cplusplus.VirtualCall,