hemplate

Simple XML template engine
git clone git://git.dimitrijedobrota.com/hemplate.git
Log | Files | Refs | README | LICENSE

.clang-tidy (6619B)


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