-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
38 lines (37 loc) · 1.55 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
Checks:
- readability-*
- portability-*
- performance-*
- modernize-*
- misc-*
- cppcoreguidelines-*
- concurrency-*
- cert-*
- bugprone-*
- -misc-include-cleaner # not reliable
- -llvm-header-guard # #pragma once
- -llvm-include-order # managed by clang-format
- -modernize-use-trailing-return-type # TODO
- -misc-no-recursion # simplifies code
- -cert-dcl21-cpp # conflicts with not specifying return as const
CheckOptions:
- { key: readability-identifier-naming.ClassCase, value: CamelCase }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
- { key: readability-identifier-naming.MemberCase, value: camelBack }
- { key: readability-identifier-naming.FunctionCase, value: camelBack }
- { key: readability-identifier-naming.LocalVariableCase, value: camelBack }
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
- { key: readability-identifier-naming.StaticConstantCase, value: CamelCase }
- { key: readability-identifier-naming.EnumConstantCase, value: CamelCase }
- { key: readability-identifier-naming.GlobalConstantCase, value: CamelCase }
- { key: readability-identifier-naming.ConstantMemberCase, value: camelBack }
- { key: readability-identifier-length.MinimumVariableNameLength, value: 3 }
- { key: readability-identifier-length.MinimumParameterNameLength, value: 3 }
- {
key: readability-identifier-length.IgnoredParameterNames,
value: "i|j|k|x|y|z|os",
}
- {
key: readability-identifier-length.IgnoredVariableNames,
value: "i|j|k|x|y|z|os",
}