generated from vis4rd/opengl_project_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-tidy
91 lines (87 loc) · 4.24 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
# RUN EXAMPLE:
# find src/engine -type f | grep -vi lib/* | grep -E ".*\.(cpp|hpp|c|h|inl)$" | xargs clang-tidy --use-color --config-file=.clang-tidy -p build > dev/clang-tidy-output.txt
---
WarningsAsErrors: "true"
UseColor: true
HeaderFilterRegex: '.*\/?src\/(engine\/module\/|game\/include\/).*'
HeaderFileExtensions: # clang-tidy > 18
- "hpp"
- "inl"
ImplementationFileExtensions: # clang-tidy > 18
- "cpp"
ExtraArgsBefore:
- --std=c++20
# Do not use any whitespaces in comments
Checks: |
-*,
#enabled
clang-analyzer-*,
cppcoreguidelines-*,
google-*,
modernize-*,
performance-*,
readability-identifier-naming,
#disabled
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-non-private-member-variables-in-classes,
-cppcoreguidelines-pro-type-union-access,
-cppcoreguidelines-pro-type-vararg,
-modernize-pass-by-value,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type
CheckOptions:
readability-identifier-naming.AbstractClassCase: CamelCase
readability-identifier-naming.ClassCase: CamelCase
readability-identifier-naming.ClassConstantCase: UPPER_CASE
readability-identifier-naming.ClassMemberCase: UPPER_CASE
readability-identifier-naming.ClassMethodCase: camelBack
# readability-identifier-naming.ConstantCase: lower_case
# readability-identifier-naming.ConstantMemberCase: camelBack
# readability-identifier-naming.ConstantMemberPrefix: m_
readability-identifier-naming.ConstantParameterCase: lower_case
readability-identifier-naming.ConstantPointerParameterCase: lower_case
readability-identifier-naming.ConstexprFunctionCase: camelBack
readability-identifier-naming.ConstexprMethodCase: camelBack
# readability-identifier-naming.ConstexprVariableCase: camelBack
readability-identifier-naming.EnumCase: CamelCase
readability-identifier-naming.EnumConstantCase: UPPER_CASE
readability-identifier-naming.FunctionCase: camelBack
# readability-identifier-naming.GlobalConstantCase: camelBack
readability-identifier-naming.GlobalConstantPointerCase: camelBack
readability-identifier-naming.GlobalFunctionCase: camelBack
readability-identifier-naming.GlobalPointerCase: camelBack
# readability-identifier-naming.GlobalVariableCase: camelBack
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: camelBack
readability-identifier-naming.MethodCase: camelBack
# 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: camelBack
readability-identifier-naming.PrivateMemberPrefix: m_
readability-identifier-naming.PrivateMethodCase: camelBack
readability-identifier-naming.ProtectedMemberCase: camelBack
readability-identifier-naming.ProtectedMemberPrefix: m_
readability-identifier-naming.ProtectedMethodCase: camelBack
readability-identifier-naming.PublicMemberCase: camelBack
readability-identifier-naming.PublicMethodCase: camelBack
readability-identifier-naming.ScopedEnumConstantCase: UPPER_CASE
readability-identifier-naming.StaticConstantCase: lower_case
readability-identifier-naming.StaticVariableCase: lower_case
readability-identifier-naming.StructCase: CamelCase
readability-identifier-naming.TemplateParameterCase: UPPER_CASE
readability-identifier-naming.TemplateTemplateParameterCase: CamelCase
# readability-identifier-naming.TypeAliasCase: CamelCase
# readability-identifier-naming.TypedefCase: CamelCase
readability-identifier-naming.TypeTemplateParameterCase: UPPER_CASE
# readability-identifier-naming.UnionCase: lower_case
readability-identifier-naming.ValueTemplateParameterCase: UPPER_CASE
# readability-identifier-naming.VariableCase: lower_case
readability-identifier-naming.VirtualMethodCase: camelBack