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