-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.clang-tidy
84 lines (84 loc) · 2.72 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
Checks: '
bugprone-*,
cert-*,
-cert-err33-c,
-cert-oop54-cpp,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-explicit-virtual-functions,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-no-malloc,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-const-cast,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-static-cast-downcast,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
google-default-arguments,
google-explicit-constructor,
google-readability-avoid-underscore-in-googletest-name,
google-readability-casting,
google-runtime-int,
google-upgrade-googletest-case,
hicpp-exception-baseclass,
hicpp-ignored-remove-result,
hicpp-multiway-paths-covered,
hicpp-no-assembler,
hicpp-signed-bitwise,
misc-*,
-misc-no-recursion,
-misc-use-anonymous-namespace,
modernize-*,
-modernize-use-nodiscard,
-modernize-use-std-print,
-modernize-use-trailing-return-type,
performance-*,
-performance-avoid-endl,
portability-*,
readability-*,
-readability-else-after-return,
-readability-identifier-length,
-readability-redundant-access-specifiers
'
WarningsAsErrors: '*'
FormatStyle: file
CheckOptions:
- key: readability-uppercase-literal-suffix.NewSuffixes
value: 'L;LL;LU;LLU;UL;ULL;Z'
- key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
value: false
- key: modernize-use-override.IgnoreDestructors
value: true
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
value: true
- key: readability-function-size.ParameterThreshold
value: 8
- key: readability-function-size.StatementThreshold
value: 50
- key: misc-const-correctness.AnalyzeValues
value: false
- key: hicpp-signed-bitwise.IgnorePositiveIntegerLiterals
value: true
# Naming: types
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasIgnoredRegexp
value: '([a-z0-9_]+_)?(type|pointer|reference|iterator)|iterator_(category|concept)'
- key: readability-identifier-naming.TypeTemplateParameterCase
value: PascalCase
- key: readability-identifier-naming.TemplateTemplateParameterCase
value: PascalCase
...