-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy path.clang-tidy
More file actions
151 lines (141 loc) · 5.49 KB
/
.clang-tidy
File metadata and controls
151 lines (141 loc) · 5.49 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
Checks: >
-*,
bugprone-*,
-bugprone-exception-escape,
-bugprone-forward-declaration-namespace,
-bugprone-lambda-function-name,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
cppcoreguidelines-*,
-cppcoreguidelines-narrowing-conversions,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-pro-bounds-constant-array-index,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-avoid-c-arrays,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-avoid-do-while
misc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
modernize-*,
-modernize-use-trailing-return-type,
performance-*,
readability-*,
-readability-convert-member-functions-to-static,
-readability-implicit-bool-conversion,
-readability-named-parameter,
-readability-redundant-access-specifiers,
-readability-container-contains,
-readability-magic-numbers,
-readability-avoid-nested-conditional-operator
WarningsAsErrors: >
*,
-clang-analyzer-core.NonNullParamChecker,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-cppcoreguidelines-avoid-non-const-global-variables,
-bugprone-easily-swappable-parameters,
-misc-header-include-cycle
FormatStyle: file
CheckOptions:
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
value: "1"
- key: performance-unnecessary-value-param.AllowedTypes
value: .*[Pp]tr;.*[Pp]ointer
- key: bugprone-exception-escape.IgnoredExceptions
value: std::bad_alloc;std::bad_optional_access;fmt::format_error;CLI::RuntimeError;CLI::Error
- key: readability-function-cognitive-complexity.IgnoreMacros
value: "true"
- key: readability-function-cognitive-complexity.DescribeBasicIncrements
value: "false"
- key: cppcoreguidelines-macro-usage.AllowedRegexp
value: ^CAP_|^CHECK_|^VERIFY|^ERROR_.*_IF$|^PACKED$|_NOLINT$|^UTIL_|^DECLARE_|^DEFINE_|^DEFAULT_|^BEGIN_|^END_|^TRACE_
- key: misc-include-cleaner.IgnoreHeaders
value: common/FormatUtils.hpp;CLI/CLI.hpp;common/LogUtils.hpp;bits/.*
- key: readability-identifier-length.IgnoredVariableNames
value: ^id$|^it$|^ok$|^i$
- key: readability-identifier-length.IgnoredParameterNames
value: ^id$|^ok$|^a$|^b$
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.ConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.ConstantMemberCase
value: lower_case
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantCase
value: CamelCase
- key: readability-identifier-naming.EnumConstantIgnoredRegexp
value: ^[A-Z][A-Z_0-9]*$
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: ^_[a-z][^A-Z]*$
- key: readability-identifier-naming.GlobalVariableCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.GlobalConstantIgnoredRegexp
value: ^TICKET_COMMAND_.*$
- key: readability-identifier-naming.LocalConstantCase
value: lower_case
- key: readability-identifier-naming.LocalVariableCase
value: lower_case
- key: readability-identifier-naming.MacroDefinitionCase
value: UPPER_CASE
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.PublicMethodCase
value: CamelCase
- key: readability-identifier-naming.MethodCase
value: lower_case
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.ConstantParameterCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberPrefix
value: _
- key: readability-identifier-naming.ProtectedMemberCase
value: lower_case
- key: readability-identifier-naming.ProtectedMemberPrefix
value: _
- key: readability-identifier-naming.StaticConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.StaticVariableCase
value: UPPER_CASE
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.TemplateParameterCase
value: UPPER_CASE
- key: readability-identifier-naming.TemplateTemplateParameterCase
value: UPPER_CASE
- key: readability-identifier-naming.TypeTemplateParameterCase
value: UPPER_CASE
- key: readability-identifier-naming.TypeAliasCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasIgnoredRegexp
value: ^Point\d+D_|d+[SUF]$|
- key: readability-identifier-naming.TypedefCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.ValueTemplateParameterCase
value: UPPER_CASE
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: bugprone-empty-catch.IgnoreCatchWithKeywords
value: "IGNORE"
- key: readability-function-cognitive-complexity.Threshold
value: 100
- key: readability-identifier-length.MinimumVariableNameLength
value: '1'
- key: readability-identifier-length.MinimumParameterNameLength
value: '1'