-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
38 lines (38 loc) · 1.3 KB
/
.clang-tidy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# cppcoreguidelines-avoid-magic-numbers aliases readability-magic-numbers
# cppcoreguidelines-avoid-c-arrays aliases modernize-avoid-c-arrays
# cppcoreguidelines-special-member-functions is overly explicit and verbose
# clang-analyzer-core.uninitialized.Assign happens to choke on OUTCOME_TRY
Checks: >
boost-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
-clang-analyzer-core.uninitialized.Assign,
clang-diagnostic-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-special-member-functions,
modernize-*,
-modernize-avoid-c-arrays,
-cppcoreguidelines-avoid-do-while,
-modernize-use-default-member-init,
performance-*,
portability-*,
readability-*,
-readability-identifier-length,
-readability-magic-numbers,
-readability-named-parameter,
-readability-redundant-member-init,
-readability-static-accessed-through-instance
WarningsAsErrors: true
HeaderFilterRegex: ".*/src/dp(lx|_tests)/.*"
FormatStyle: file
CheckOptions:
- key: modernize-use-override.AllowOverrideAndFinal
value: true
- key: cppcoreguidelines-macro-usage.AllowedRegexp
value: "DPLX_.+_WORKAROUND(_TESTED_AT)?"
- key: readability-function-cognitive-complexity.IgnoreMacros
value: true