-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-tidy
More file actions
116 lines (106 loc) · 3.5 KB
/
Copy path.clang-tidy
File metadata and controls
116 lines (106 loc) · 3.5 KB
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
Checks: '
readability-identifier*,
readability-magic-numbers,
bugprone-stringview-nullptr,
readability-function-cognitive-complexity,
readability-else-after-return,
readability-redundant-access-specifiers,
readability-make-member-function-const,
readability-duplicate-include,
readability-implicit-bool-conversion,
readability-convert-member-functions-to-static,
modernize-use-override,
modernize-concat-nested-namespaces,
misc-static-assert,
misc-include-cleaner,
misc-misplaced-const,
misc-throw-by-value-catch-by-reference,
modernize-avoid-bind,
modernize-make-shared,
modernize-make-unique,
modernize-use-noexcept,
modernize-use-nodiscard,
modernize-avoid-c-arrays,
modernize-use-ranges,
modernize-use-auto,
modernize-use-using,
modernize-use-nullptr,
modernize-avoid-bind,
modernize-use-scoped-lock,
modernize-use-equals-delete,
modernize-use-equals-default,
performance-faster-string-find,
performance-inefficient-string-concatenation,
performance-inefficient-vector-operation,
performance-no-automatic-move,
performance-move-const-arg,
performance-unnecessary-value-param,
performance-avoid-endl,
llvm-include-order,
readability-reference-to-constructed-temporary,
readability-use-anyofallof,
readability-avoid-const-params-in-decls,
readability-container-contains,
readability-container-data-pointer,
cppcoreguidelines-pro-type-cstyle-cast,
portability-avoid-pragma-once,
cppcoreguidelines-avoid-goto,
cppcoreguidelines-no-malloc,
cppcoreguidelines-use-enum-class,
cppcoreguidelines-pro-bounds-constant-array-index
'
CheckOptions:
# Classes, structs, ...
- key: readability-identifier-naming.NamespaceCase
value: lower_case
- key: readability-identifier-naming.ClassCase
value: CamelCase
- key: readability-identifier-naming.AbstractClassCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasCase
value: lower_case
- key: readability-identifier-naming.TypeAliasSuffix
value: _t
- key: readability-identifier-naming.StructCase
value: CamelCase
- key: readability-identifier-naming.EnumCase
value: CamelCase
- key: readability-identifier-naming.UnionCase
value: CamelCase
- key: readability-identifier-naming.TypedefCase
value: CamelCase
# Variables, member variables, ...
- key: readability-identifier-naming.ParameterCase
value: lower_case
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.MemberCase
value: lower_case
- key: readability-identifier-naming.PublicMemberCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberCase
value: lower_case
- key: readability-identifier-naming.PrivateMemberPrefix
value: m_
- key: readability-identifier-naming.ProtectedMemberCase
value: lower_case
- key: readability-identifier-naming.EnumConstantCase
value: UPPER_CASE
# Functions, methods, ...
- key: readability-identifier-naming.ClassMethodCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
# Variable Lengths
- key: readability-identifier-length.MinimumVariableNameLength
value: '3'
- key: readability-identifier-length.MinimumParameterNameLength
value: '3'
# Type Alias
- key: readability-identifier-naming.TypeAliasCase
value: lower_case
- key: readability-identifier-naming.TypedefSuffix
value: _t
# Literals
- key: readability-uppercase-literal-suffix.NewSuffixes
value: L;U;f:UL