Skip to content

Commit d45dea4

Browse files
committed
.clang-tidy - add clang-tidy configuration
1 parent e766fc7 commit d45dea4

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.clang-tidy

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
Checks: '
3+
-*,
4+
bugprone-*,
5+
clang-analyzer-*,
6+
clang-diagnostic-*,
7+
concurrency-mt-unsafe,
8+
cppcoreguidelines-no-malloc,
9+
misc-*,
10+
modernize-*,
11+
performance-*,
12+
readability-*,
13+
-misc-include-cleaner,
14+
-misc-new-delete-overloads,
15+
-misc-no-recursion,
16+
-misc-use-anonymous-namespace,
17+
-modernize-use-trailing-return-type,
18+
-modernize-use-nodiscard,
19+
-modernize-avoid-c-arrays,
20+
-bugprone-easily-swappable-parameters,
21+
-bugprone-multi-level-implicit-pointer-conversion,
22+
-performance-enum-size,
23+
-readability-avoid-nested-conditional-operator'
24+
FormatStyle: file
25+
WarningsAsErrors: '*'
26+
27+
CheckOptions:
28+
- key: readability-identifier-naming.ClassCase
29+
value: 'CamelCase'
30+
- key: readability-identifier-naming.ClassConstantCase
31+
value: 'UPPER_CASE'
32+
- key: readability-identifier-naming.ClassMemberCase
33+
value: 'camelBack'
34+
- key: readability-identifier-naming.ClassMemberPrefix
35+
value: 's_'
36+
- key: readability-identifier-naming.ClassMethodCase
37+
value: 'camelBack'
38+
- key: readability-identifier-naming.ConstantMemberCase
39+
value: 'UPPER_CASE'
40+
- key: readability-identifier-naming.EnumConstantCase
41+
value: 'UPPER_CASE'
42+
- key: readability-identifier-naming.FunctionCase
43+
value: 'camelBack'
44+
- key: readability-identifier-naming.GlobalVariablePrefix
45+
value: 'g_'
46+
- key: readability-identifier-naming.GlobalConstantPrefix
47+
value: ''
48+
- key: readability-identifier-naming.MacroDefinitionCase
49+
value: 'UPPER_CASE'
50+
- key: readability-identifier-naming.MemberCase
51+
value: 'camelBack'
52+
- key: readability-identifier-naming.NamespaceCase
53+
value: 'lower_case'
54+
- key: readability-identifier-naming.ParameterCase
55+
value: 'camelBack'
56+
- key: readability-identifier-naming.PrivateMemberPrefix
57+
value: 'm_'
58+
- key: readability-identifier-naming.ProtectedMemberPrefix
59+
value: 'm_'
60+
- key: readability-identifier-naming.StructCase
61+
value: 'CamelCase'
62+
- key: readability-identifier-naming.TypeAliasCase
63+
value: 'CamelCase'
64+
- key: readability-identifier-naming.TypeAliasIgnoredRegexp
65+
value: '^.*_type$|^.*_category$|^.*reference$|^.*iterator$|^.*pointer$'
66+
- key: readability-identifier-naming.VariableCase
67+
value: 'camelBack'
68+
69+
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
70+
value: True
71+
- key: readability-magic-numbers.IgnorePowersOf2IntegerValues
72+
value: True
73+
- key: readability-magic-numbers.IgnoredIntegerValues
74+
value: '0;1;2;3;4;255;65535;4294967295'
75+
...

0 commit comments

Comments
 (0)