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