giga

Terminal text editor
git clone git://git.dimitrijedobrota.com/giga.git
Log | Files | Refs | README | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

.clang-tidy (6597B)


0 ---
1 # Enable ALL the things! Except not really
2 # misc-non-private-member-variables-in-classes: the options don't do anything
3 # modernize-use-nodiscard: too aggressive, attribute is situationally useful
4 Checks: "*,\
5 -google-readability-todo,\
6 -altera-*,\
7 -boost-*,\
8 -bugprone-easily-swappable-parameters,\
9 -cppcoreguidelines-avoid-magic-numbers,\
10 -cppcoreguidelines-avoid-do-while,\
11 -abseil-string-find-str-contains,\
12 -fuchsia-*,\
13 fuchsia-multiple-inheritance,\
14 -llvm-header-guard,\
15 -llvm-include-order,\
16 -llvmlibc-*,\
17 -modernize-use-designated-initializers,\
18 -modernize-use-nodiscard,\
19 -modernize-use-trailing-return-type,\
20 -modernize-use-ranges,\
21 -misc-include-cleaner,\
22 -misc-non-private-member-variables-in-classes,\
23 -misc-no-recursion,\
24 -readability-magic-numbers
25 "
26 WarningsAsErrors: ''
27 CheckOptions:
28 - key: 'bugprone-argument-comment.StrictMode'
29 value: 'true'
30 # Prefer using enum classes with 2 values for parameters instead of bools
31 - key: 'bugprone-argument-comment.CommentBoolLiterals'
32 value: 'true'
33 - key: 'bugprone-misplaced-widening-cast.CheckImplicitCasts'
34 value: 'true'
35 - key: 'bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression'
36 value: 'true'
37 - key: 'bugprone-suspicious-string-compare.WarnOnLogicalNotComparison'
38 value: 'true'
39 - key: 'readability-simplify-boolean-expr.ChainedConditionalReturn'
40 value: 'true'
41 - key: 'readability-simplify-boolean-expr.ChainedConditionalAssignment'
42 value: 'true'
43 - key: 'readability-uniqueptr-delete-release.PreferResetCall'
44 value: 'true'
45 - key: 'cppcoreguidelines-init-variables.MathHeader'
46 value: '<cmath>'
47 - key: 'cppcoreguidelines-narrowing-conversions.PedanticMode'
48 value: 'true'
49 - key: 'readability-else-after-return.WarnOnUnfixable'
50 value: 'true'
51 - key: 'readability-else-after-return.WarnOnConditionVariables'
52 value: 'true'
53 - key: 'readability-inconsistent-declaration-parameter-name.Strict'
54 value: 'true'
55 - key: 'readability-qualified-auto.AddConstToQualified'
56 value: 'true'
57 - key: 'readability-redundant-access-specifiers.CheckFirstDeclaration'
58 value: 'true'
59 # These seem to be the most common identifier styles
60 - key: 'readability-identifier-naming.AbstractClassCase'
61 value: 'CamelCase'
62 - key: 'readability-identifier-naming.ClassCase'
63 value: 'CamelCase'
64 - key: 'readability-identifier-naming.ClassConstantCase'
65 value: 'lower_case'
66 - key: 'readability-identifier-naming.ClassMemberCase'
67 value: 'lower_case'
68 - key: 'readability-identifier-naming.ClassMethodCase'
69 value: 'lower_case'
70 - key: 'readability-identifier-naming.ConstantCase'
71 value: 'lower_case'
72 - key: 'readability-identifier-naming.ConstantMemberCase'
73 value: 'lower_case'
74 - key: 'readability-identifier-naming.ConstantParameterCase'
75 value: 'lower_case'
76 - key: 'readability-identifier-naming.ConstantPointerParameterCase'
77 value: 'lower_case'
78 - key: 'readability-identifier-naming.ConstexprFunctionCase'
79 value: 'lower_case'
80 - key: 'readability-identifier-naming.ConstexprMethodCase'
81 value: 'lower_case'
82 - key: 'readability-identifier-naming.ConstexprVariableCase'
83 value: 'lower_case'
84 - key: 'readability-identifier-naming.EnumCase'
85 value: 'CamelCase'
86 - key: 'readability-identifier-naming.EnumConstantCase'
87 value: 'CamelCase'
88 - key: 'readability-identifier-naming.FunctionCase'
89 value: 'lower_case'
90 - key: 'readability-identifier-naming.GlobalConstantCase'
91 value: 'lower_case'
92 - key: 'readability-identifier-naming.GlobalConstantPointerCase'
93 value: 'lower_case'
94 - key: 'readability-identifier-naming.GlobalFunctionCase'
95 value: 'lower_case'
96 - key: 'readability-identifier-naming.GlobalPointerCase'
97 value: 'lower_case'
98 - key: 'readability-identifier-naming.GlobalVariableCase'
99 value: 'lower_case'
100 - key: 'readability-identifier-naming.InlineNamespaceCase'
101 value: 'lower_case'
102 - key: 'readability-identifier-naming.LocalConstantCase'
103 value: 'lower_case'
104 - key: 'readability-identifier-naming.LocalConstantPointerCase'
105 value: 'lower_case'
106 - key: 'readability-identifier-naming.LocalPointerCase'
107 value: 'lower_case'
108 - key: 'readability-identifier-naming.LocalVariableCase'
109 value: 'lower_case'
110 - key: 'readability-identifier-naming.MacroDefinitionCase'
111 value: 'UPPER_CASE'
112 - key: 'readability-identifier-naming.MemberCase'
113 value: 'lower_case'
114 - key: 'readability-identifier-naming.MethodCase'
115 value: 'lower_case'
116 - key: 'readability-identifier-naming.NamespaceCase'
117 value: 'lower_case'
118 - key: 'readability-identifier-naming.ParameterCase'
119 value: 'lower_case'
120 - key: 'readability-identifier-naming.ParameterPackCase'
121 value: 'lower_case'
122 - key: 'readability-identifier-naming.PointerParameterCase'
123 value: 'lower_case'
124 - key: 'readability-identifier-naming.PrivateMemberCase'
125 value: 'lower_case'
126 - key: 'readability-identifier-naming.PrivateMemberPrefix'
127 value: 'm_'
128 - key: 'readability-identifier-naming.PrivateMethodCase'
129 value: 'lower_case'
130 - key: 'readability-identifier-naming.ProtectedMemberCase'
131 value: 'lower_case'
132 - key: 'readability-identifier-naming.ProtectedMemberPrefix'
133 value: 'm_'
134 - key: 'readability-identifier-naming.ProtectedMethodCase'
135 value: 'lower_case'
136 - key: 'readability-identifier-naming.PublicMemberCase'
137 value: 'lower_case'
138 - key: 'readability-identifier-naming.PublicMethodCase'
139 value: 'lower_case'
140 - key: 'readability-identifier-naming.ScopedEnumConstantCase'
141 value: 'CamelCase'
142 - key: 'readability-identifier-naming.StaticConstantCase'
143 value: 'lower_case'
144 - key: 'readability-identifier-naming.StaticVariableCase'
145 value: 'lower_case'
146 - key: 'readability-identifier-naming.StructCase'
147 value: 'lower_case'
148 - key: 'readability-identifier-naming.TemplateParameterCase'
149 value: 'CamelCase'
150 - key: 'readability-identifier-naming.TemplateTemplateParameterCase'
151 value: 'CamelCase'
152 - key: 'readability-identifier-naming.TypeAliasCase'
153 value: 'lower_case'
154 - key: 'readability-identifier-naming.TypedefCase'
155 value: 'lower_case'
156 - key: 'readability-identifier-naming.TypeTemplateParameterCase'
157 value: 'CamelCase'
158 - key: 'readability-identifier-naming.UnionCase'
159 value: 'lower_case'
160 - key: 'readability-identifier-naming.ValueTemplateParameterCase'
161 value: 'CamelCase'
162 - key: 'readability-identifier-naming.VariableCase'
163 value: 'lower_case'
164 - key: 'readability-identifier-naming.VirtualMethodCase'
165 value: 'lower_case'
166 ...