-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.clang-tidy
137 lines (137 loc) · 7 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
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
Checks:
[
altera-struct-pack-align,
android-cloexec-*,
android-comparison-in-temp-failure-retry,
bugprone-*,
cert-*,
clang-analyzer-*,
clang-diagnostic-*,
concurrency-*,
cppcoreguidelines-*,
google-*,
hicpp-*,
misc-*,
modernize-*,
performance-*,
portability-*,
readability-*,
-cert-dcl21-cpp,
-clang-analyzer-valist.Uninitialized,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-init-variables,
-cppcoreguidelines-owning-memory,
-google-build-using-namespace,
-hicpp-named-parameter,
-readability-else-after-return,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,
-readability-named-parameter,
-readability-qualified-auto,
-readability-static-accessed-through-instance,
]
CheckOptions:
bugprone-argument-comment.CommentBoolLiterals: true
bugprone-dangling-handle.HandleClasses: "::std::basic_string_view;::std::span"
bugprone-misplaced-widening-cast.CheckImplicitCasts: true
bugprone-not-null-terminated-result.WantToUseSafeFunctions: false
bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression: true
bugprone-sizeof-expression.WarnOnSizeOfPointer: true
bugprone-suspicious-enum-usage.StrictMode: 1
bugprone-suspicious-string-compare.WarnOnLogicalNotComparison: true
bugprone-unsafe-functions.ReportMoreUnsafeFunctions: true
bugprone-unused-return-value.AllowCastToVoid: true
cppcoreguidelines-narrowing-conversions.PedanticMode: true
cppcoreguidelines-narrowing-conversions.WarnWithinTemplateInstantiation: true
cppcoreguidelines-pro-type-const-cast.StrictMode: true
cppcoreguidelines-pro-type-member-init.UseAssignment: false
cppcoreguidelines-rvalue-reference-param-not-moved.IgnoreUnnamedParams: true
cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor: true
hicpp-signed-bitwise.IgnorePositiveIntegerLiterals: true
hicpp-special-member-functions.AllowSoleDefaultDtor: true
misc-const-correctness.TransformPointersAsValues: true
misc-const-correctness.WarnPointersAsValues: true
misc-unused-parameters.StrictMode: true
misc-throw-by-value-catch-by-reference.WarnOnLargeObject: true
modernize-avoid-bind.PermissiveParameterList: false
modernize-deprecated-headers.CheckHeaderFile: true
modernize-use-auto.RemoveStars: true
modernize-use-ranges.UseReversePipe: true
modernize-use-std-print.StrictMode: true
performance-for-range-copy.WarnOnAllAutoCopies: true
performance-inefficient-string-concatenation.StrictMode: true
performance-move-const-arg.CheckTriviallyCopyableMove: false
performance-unnecessary-copy-initialization.AllowedTypes: "::std::shared_ptr;::std::stop_token"
performance-unnecessary-value-param.AllowedTypes: "::std::shared_ptr;::std::stop_token"
readability-identifier-naming.AbstractClassCase: lower_case
readability-identifier-naming.AggressiveDependentMemberLookup: true
readability-identifier-naming.CheckAnonFieldInParent: true
readability-identifier-naming.ClassCase: lower_case
readability-identifier-naming.ClassConstantCase: lower_case
readability-identifier-naming.ClassMemberCase: lower_case
readability-identifier-naming.ClassMethodCase: lower_case
readability-identifier-naming.ConceptCase: lower_case
readability-identifier-naming.ConstantCase: lower_case
readability-identifier-naming.ConstantMemberCase: lower_case
readability-identifier-naming.ConstantParameterCase: lower_case
readability-identifier-naming.ConstantPointerParameterCase: lower_case
readability-identifier-naming.ConstexprFunctionCase: lower_case
readability-identifier-naming.ConstexprMethodCase: lower_case
readability-identifier-naming.ConstexprVariableCase: lower_case
readability-identifier-naming.EnumCase: lower_case
readability-identifier-naming.EnumConstantCase: lower_case
readability-identifier-naming.FunctionCase: lower_case
readability-identifier-naming.GlobalConstantCase: lower_case
readability-identifier-naming.GlobalConstantPointerCase: lower_case
readability-identifier-naming.GlobalFunctionCase: lower_case
readability-identifier-naming.GlobalPointerCase: lower_case
readability-identifier-naming.GlobalVariableCase: lower_case
readability-identifier-naming.InlineNamespaceCase: lower_case
readability-identifier-naming.LocalConstantCase: lower_case
readability-identifier-naming.LocalConstantPointerCase: lower_case
readability-identifier-naming.LocalPointerCase: lower_case
readability-identifier-naming.LocalVariableCase: lower_case
readability-identifier-naming.MacroDefinitionCase: UPPER_CASE
readability-identifier-naming.MemberCase: lower_case
readability-identifier-naming.MethodCase: lower_case
readability-identifier-naming.NamespaceCase: lower_case
readability-identifier-naming.ParameterCase: lower_case
readability-identifier-naming.ParameterPackCase: lower_case
readability-identifier-naming.PointerParameterCase: lower_case
readability-identifier-naming.PrivateMemberCase: lower_case
readability-identifier-naming.PrivateMethodCase: lower_case
readability-identifier-naming.ProtectedMemberCase: lower_case
readability-identifier-naming.ProtectedMethodCase: lower_case
readability-identifier-naming.PublicMemberCase: lower_case
readability-identifier-naming.PublicMethodCase: lower_case
readability-identifier-naming.ScopedEnumConstantCase: lower_case
readability-identifier-naming.StaticConstantCase: lower_case
readability-identifier-naming.StaticVariableCase: lower_case
readability-identifier-naming.StructCase: lower_case
readability-identifier-naming.TemplateParameterCase: CamelCase
readability-identifier-naming.TemplateTemplateParameterCase: CamelCase
readability-identifier-naming.TypeAliasCase: lower_case
readability-identifier-naming.TypeAliasIgnoredRegexp: "(iterator_category)|(difference_type)|(value_type)|(pointer)|(reference)"
readability-identifier-naming.TypedefCase: lower_case
readability-identifier-naming.TypeTemplateParameterCase: CamelCase
readability-identifier-naming.UnionCase: lower_case
readability-identifier-naming.ValueTemplateParameterCase: CamelCase
readability-identifier-naming.VariableCase: lower_case
readability-identifier-naming.VirtualMethodCase: lower_case
readability-implicit-bool-conversion.UseUpperCaseLiteralSuffix: true
readability-inconsistent-declaration-parameter-name.Strict: true
readability-operators-representation.BinaryOperators: "and;not;or;&=;&;|;~;!=;|=;^;^="
readability-redundant-inline-specifier.StrictMode: true
readability-redundant-member-init.IgnoreBaseInCopyConstructors: true
readability-simplify-boolean-expr.ChainedConditionalAssignment: true
readability-simplify-boolean-expr.ChainedConditionalReturn: true
readability-suspicious-call-argument.MinimumIdentifierNameLength: 1
readability-uniqueptr-delete-release.PreferResetCall: true
FormatStyle: file
HeaderFileExtensions: ["", "h", "hh", "hpp", "hxx"]
HeaderFilterRegex: ""
ImplementationFileExtensions: ["c", "cc", "cpp", "cxx"]
InheritParentConfig: true
User: [email protected]
WarningsAsErrors: ""