1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-26 21:17:12 +00:00

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.
This commit is contained in:
jvoisin 2023-04-25 21:55:13 +02:00
parent 957318d0b9
commit 24eb1165fc
2 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,7 @@ AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true BinPackArguments: true
BinPackParameters: true BinPackParameters: true
BraceWrapping: BraceWrapping:

View File

@ -6,5 +6,12 @@ Checks: >
-clang-analyzer-optin*, -clang-analyzer-optin*,
-clang-analyzer-cplusplus.NewDeleteLeaks, -clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-core.CallAndMessage -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)' HeaderFilterRegex: '^(apps|components)'