-
Notifications
You must be signed in to change notification settings - Fork 1
/
.clang-tidy
85 lines (70 loc) · 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
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
Checks: '
*,
-abseil-*,
-altera-*,
-android-*,
-darwin-*,
-fuchsia-*,
-linuxkernel-*,
-llvm-*,
-llvmlibc-*,
-zircon-*,
-readability-convert-member-functions-to-static,
-modernize-use-trailing-return-type,
-cppcoreguidelines-pro-type-vararg,
-hicpp-vararg,
-hicpp-uppercase-literal-suffix,
-readability-uppercase-literal-suffix,
-cert-dcl16-c,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-pro-type-cstyle-cast,
-cppcoreguidelines-avoid-c-arrays,
-performance-noexcept-move-constructor,
-bugprone-unhandled-exception-at-new,
-bugprone-lambda-function-name,
-readability-identifier-length,
-cert-err58-cpp,
-hicpp-avoid-c-arrays,
-misc-non-private-member-variables-in-classes,
-misc-use-anonymous-namespace,
-google-runtime-int,
-google-default-arguments,
-google-readability-casting,
-bugprone-easily-swappable-parameters,
-cppcoreguidelines-owning-memory,
-modernize-avoid-c-arrays,
-hicpp-named-parameter,
-hicpp-no-array-decay,
-readability-named-parameter,
-cppcoreguidelines-pro-bounds-pointer-arithmetic,
-readability-implicit-bool-conversion,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
-cppcoreguidelines-avoid-magic-numbers, # duplicates readability-magic-numbers
-*-static-accessed-through-instance
'
WarningsAsErrors: '*'
CheckOptions: [
{ key: readability-identifier-naming.PublicMemberPrefix, value: '' },
{ key: readability-identifier-naming.ProtectedMemberPrefix, value: 'm_' },
{ key: readability-identifier-naming.PrivateMemberPrefix, value: 'm_' },
{ key: readability-identifier-naming.GlobalVariablePrefix, value: 'g_' },
{ key: readability-identifier-naming.MemberCase, value: lower_case },
{ key: readability-identifier-naming.VariableCase, value: lower_case },
{ key: readability-identifier-naming.GlobalVariableCase, value: lower_case },
{ key: readability-identifier-naming.FunctionCase, value: lower_case },
{ key: readability-identifier-naming.MethodCase, value: lower_case },
{ key: readability-identifier-naming.NamespaceCase, value: lower_case },
{ key: readability-identifier-naming.TemplateParameterCase, value: CamelCase },
{ key: readability-identifier-naming.StructCase, value: CamelCase },
{ 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.TypedefCase, value: CamelCase },
{ key: readability-identifier-naming.TypeAliasCase, value: CamelCase },
{ key: readability-identifier-naming.ConstantCase, value: UPPER_CASE },
{ key: readability-identifier-naming.ValueTemplateParameterCase, value: UPPER_CASE },
{ key: readability-magic-numbers.IgnoredIntegerValues, value: '1;2;3;4;8;42' },
{ key: readability-function-cognitive-complexity.Threshold, value: 75 },
{ key: cppcoreguidelines-avoid-do-while.IgnoreMacros, value: true },
{ key: misc-const-correctness.AnalyzeValues, value: false },
]