2022-08-11 09:55:20 +08:00
|
|
|
# Tracks llvm-project/mlir/.clang-tidy, including parent config.
|
|
|
|
Checks: >
|
|
|
|
-*,
|
|
|
|
clang-diagnostic-*,
|
|
|
|
llvm-*,
|
|
|
|
misc-*,
|
|
|
|
-misc-const-correctness,
|
|
|
|
-misc-unused-parameters,
|
|
|
|
-misc-non-private-member-variables-in-classes,
|
2023-08-04 03:00:35 +08:00
|
|
|
-misc-use-anonymous-namespace,
|
2023-12-04 17:28:51 +08:00
|
|
|
-misc-include-cleaner,
|
2022-08-11 09:55:20 +08:00
|
|
|
readability-identifier-naming,
|
|
|
|
bugprone-argument-comment,
|
|
|
|
bugprone-assert-side-effect,
|
|
|
|
bugprone-branch-clone,
|
|
|
|
bugprone-copy-constructor-init,
|
|
|
|
bugprone-dangling-handle,
|
|
|
|
bugprone-dynamic-static-initializers,
|
|
|
|
bugprone-macro-parentheses,
|
|
|
|
bugprone-macro-repeated-side-effects,
|
|
|
|
bugprone-misplaced-widening-cast,
|
|
|
|
bugprone-move-forwarding-reference,
|
|
|
|
bugprone-multiple-statement-macro,
|
|
|
|
bugprone-suspicious-semicolon,
|
|
|
|
bugprone-swapped-arguments,
|
|
|
|
bugprone-terminating-continue,
|
|
|
|
bugprone-unused-raii,
|
|
|
|
bugprone-unused-return-value,
|
2024-05-08 03:24:37 +08:00
|
|
|
google-global-names-in-headers,
|
2022-08-11 09:55:20 +08:00
|
|
|
modernize-use-bool-literals,
|
|
|
|
modernize-loop-convert,
|
|
|
|
modernize-make-unique,
|
|
|
|
modernize-raw-string-literal,
|
|
|
|
modernize-use-equals-default,
|
|
|
|
modernize-use-default-member-init,
|
|
|
|
modernize-use-emplace,
|
|
|
|
modernize-use-nullptr,
|
|
|
|
modernize-use-override,
|
|
|
|
modernize-use-using,
|
|
|
|
performance-for-range-copy,
|
|
|
|
performance-implicit-conversion-in-loop,
|
|
|
|
performance-inefficient-algorithm,
|
|
|
|
performance-inefficient-vector-operation,
|
|
|
|
performance-move-const-arg,
|
|
|
|
performance-no-automatic-move,
|
|
|
|
performance-trivially-destructible,
|
|
|
|
performance-unnecessary-copy-initialization,
|
|
|
|
performance-unnecessary-value-param,
|
|
|
|
readability-avoid-const-params-in-decls,
|
|
|
|
readability-const-return-type,
|
|
|
|
readability-container-size-empty,
|
|
|
|
readability-inconsistent-declaration-parameter-name,
|
|
|
|
readability-misleading-indentation,
|
|
|
|
readability-redundant-control-flow,
|
|
|
|
readability-redundant-smartptr-get,
|
|
|
|
readability-simplify-boolean-expr,
|
|
|
|
readability-simplify-subscript-expr,
|
|
|
|
readability-use-anyofallof
|
|
|
|
|
|
|
|
|
2020-10-09 04:52:58 +08:00
|
|
|
CheckOptions:
|
|
|
|
- key: readability-identifier-naming.ClassCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.EnumCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.FunctionCase
|
|
|
|
value: camelBack
|
|
|
|
- key: readability-identifier-naming.MemberCase
|
|
|
|
value: camelBack
|
|
|
|
- key: readability-identifier-naming.ParameterCase
|
|
|
|
value: camelBack
|
|
|
|
- key: readability-identifier-naming.UnionCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.VariableCase
|
|
|
|
value: camelBack
|
|
|
|
- key: readability-identifier-naming.IgnoreMainLikeFunctions
|
|
|
|
value: 1
|
2022-08-11 09:55:20 +08:00
|
|
|
- key: readability-redundant-member-init.IgnoreBaseInCopyConstructors
|
|
|
|
value: 1
|
|
|
|
- key: modernize-use-default-member-init.UseAssignment
|
|
|
|
value: 1
|