From 378c9f8b98b2636c762d0407638abb7195a22127 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Sat, 9 Mar 2024 09:30:49 +0100 Subject: [PATCH] [ci,tidy] allow integer bool conditions We heavily rely on our custom BOOL type which is a typedef to int32_t. Consider this a valid bool condition for readability-implicit-bool-conversion --- .clang-tidy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 838f7118a..65bb2f85f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -49,6 +49,8 @@ AnalyzeTemporaryDtors: false FormatStyle: file User: nin CheckOptions: + - key: readability-implicit-bool-conversion.AllowIntegerConditions + value: 'true' - key: llvm-else-after-return.WarnOnConditionVariables value: 'false' - key: modernize-loop-convert.MinConfidence