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