From 24eb1165fcdfe9a4a6561750adac901c6d809e77 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 25 Apr 2023 21:55:13 +0200 Subject: [PATCH] Fix .clang-format and .clang-tidy - `AlwaysBreakTemplateDeclarations` is a ternary, no a boolean. - `WarningsAsErrors` is the list of checks that should be treated as errors, not a boolean. --- .clang-format | 2 +- .clang-tidy | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 38d035bb50..a4dcc74a36 100644 --- a/.clang-format +++ b/.clang-format @@ -17,7 +17,7 @@ AllowShortLoopsOnASingleLine: false AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true -AlwaysBreakTemplateDeclarations: true +AlwaysBreakTemplateDeclarations: Yes BinPackArguments: true BinPackParameters: true BraceWrapping: diff --git a/.clang-tidy b/.clang-tidy index b27df6d910..30427c9e0e 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -6,5 +6,12 @@ Checks: > -clang-analyzer-optin*, -clang-analyzer-cplusplus.NewDeleteLeaks, -clang-analyzer-core.CallAndMessage -WarningsAsErrors: true +WarningsAsErrors: > + -*, + boost-*, + portability-*, + clang-analyzer-*, + -clang-analyzer-optin*, + -clang-analyzer-cplusplus.NewDeleteLeaks, + -clang-analyzer-core.CallAndMessage HeaderFilterRegex: '^(apps|components)'