llvm-project
83 строки · 2.8 Кб
1Checks: >2bugprone-copy-constructor-init,
3bugprone-dangling-handle,
4bugprone-infinite-loop,
5bugprone-stringview-nullptr,
6bugprone-use-after-move,
7
8llvm-include-order,9llvm-namespace-comment,10
11misc-definitions-in-headers,12misc-misplaced-const,13misc-non-copyable-objects,14misc-uniqueptr-reset-release,15
16modernize-loop-convert,17modernize-redundant-void-arg,18modernize-use-nullptr,19modernize-use-override,20modernize-use-equals-delete,21
22readability-duplicate-include,23readability-identifier-naming,24readability-function-cognitive-complexity,25readability-function-size,26readability-misplaced-array-index,27readability-redundant-control-flow,28readability-redundant-function-ptr-dereference,29readability-redundant-preprocessor,30readability-simplify-boolean-expr,31readability-simplify-subscript-expr,32readability-uniqueptr-delete-release,33
34CheckOptions:35- key: readability-function-cognitive-complexity.Threshold36value: 143 # TODO: bring that number down37- key: readability-function-size.LineThreshold38value: 194 # TODO: bring that number down39- key: readability-identifier-naming.GetConfigPerFile40value: false41- key: readability-identifier-naming.ParameterCase42value: lower_case43- key: readability-identifier-naming.ParameterPrefix44value: __45- key: readability-identifier-naming.PrivateMemberCase46value: lower_case47- key: readability-identifier-naming.PrivateMemberPrefix48value: __49- key: readability-identifier-naming.PrivateMemberSuffix50value: _51- key: readability-identifier-naming.LocalVariableCase52value: lower_case53- key: readability-identifier-naming.LocalVariablePrefix54value: __55- key: readability-identifier-naming.TemplateParameterCase56value: CamelCase57- key: readability-identifier-naming.TemplateParameterPrefix58value: _59- key: readability-identifier-naming.TemplateParameterIgnoredRegexp60value: (.*\:auto|expr-type) # This is https://llvm.org/PR5646461- key: readability-identifier-naming.ValueTemplateParameterCase62value: CamelCase63- key: readability-identifier-naming.ValueTemplateParameterPrefix64value: _65- key: readability-identifier-naming.ValueTemplateParameterIgnoredRegexp66value: (__[a-z_]|_[A-Z]).* # TODO: Converge on a single style for value template parameters67
68# TODO: investigate these checks
69# bugprone-branch-clone,
70# bugprone-macro-parentheses,
71# cppcoreguidelines-prefer-member-initializer,
72# misc-unused-parameters,
73# modernize-use-bool-literals,
74# modernize-use-default-member-init,
75# modernize-use-equals-default,
76# portability-restrict-system-includes,
77# readability-function-cognitive-complexity,
78# readability-implicit-bool-conversion,
79# readability-isolate-declaration,
80# readability-redundant-access-specifiers,
81# readability-redundant-declaration,
82# readability-redundant-member-init,
83#
84