Skip to content

Commit 24eb116

Browse files
committedApr 29, 2023
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.
1 parent 957318d commit 24eb116

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed
 

‎.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AllowShortLoopsOnASingleLine: false
1717
AlwaysBreakAfterDefinitionReturnType: None
1818
AlwaysBreakAfterReturnType: None
1919
AlwaysBreakBeforeMultilineStrings: true
20-
AlwaysBreakTemplateDeclarations: true
20+
AlwaysBreakTemplateDeclarations: Yes
2121
BinPackArguments: true
2222
BinPackParameters: true
2323
BraceWrapping:

‎.clang-tidy

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ Checks: >
66
-clang-analyzer-optin*,
77
-clang-analyzer-cplusplus.NewDeleteLeaks,
88
-clang-analyzer-core.CallAndMessage
9-
WarningsAsErrors: true
9+
WarningsAsErrors: >
10+
-*,
11+
boost-*,
12+
portability-*,
13+
clang-analyzer-*,
14+
-clang-analyzer-optin*,
15+
-clang-analyzer-cplusplus.NewDeleteLeaks,
16+
-clang-analyzer-core.CallAndMessage
1017
HeaderFilterRegex: '^(apps|components)'

0 commit comments

Comments
 (0)