stamen

Stamen - static menu generator
git clone git://git.dimitrijedobrota.com/stamen.git
Log | Files | Refs | README | LICENSE

.clang-tidy (6737B)


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