mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 22:25:10 +00:00
d6c66d25bb
* Add clang-tidy prefer-member-initializer * Fix clang-tdy config * Fix incorrect change * Fix sorting of .clang-tidy
73 lines
2.2 KiB
YAML
73 lines
2.2 KiB
YAML
FormatStyle: file
|
|
|
|
Checks: '
|
|
*bugprone*,
|
|
clang-analyzer-optin.performance.Padding,
|
|
clang-analyzer-optin.cplusplus.VirtualCall,
|
|
cppcoreguidelines-init-variables,
|
|
cppcoreguidelines-prefer-member-initializer,
|
|
cppcoreguidelines-pro-type-static-cast-downcast,
|
|
cppcoreguidelines-slicing,
|
|
google-explicit-constructor,
|
|
llvm-namespace-comment,
|
|
misc-misplaced-const,
|
|
misc-non-copyable-objects,
|
|
misc-static-assert,
|
|
misc-throw-by-value-catch-by-reference,
|
|
misc-uniqueptr-reset-release,
|
|
misc-unused-parameters,
|
|
modernize-avoid-bind,
|
|
modernize-make-shared,
|
|
modernize-redundant-void-arg,
|
|
modernize-replace-auto-ptr,
|
|
modernize-replace-disallow-copy-and-assign-macro,
|
|
modernize-replace-random-shuffle,
|
|
modernize-shrink-to-fit,
|
|
modernize-use-auto,
|
|
modernize-use-bool-literals,
|
|
modernize-use-equals-default,
|
|
modernize-use-equals-delete,
|
|
modernize-use-default-member-init,
|
|
modernize-use-noexcept,
|
|
modernize-use-emplace,
|
|
modernize-use-override,
|
|
modernize-use-using,
|
|
*performance*,
|
|
readability-avoid-const-params-in-decls,
|
|
readability-braces-around-statements,
|
|
readability-const-return-type,
|
|
readability-container-size-empty,
|
|
readability-delete-null-pointer,
|
|
readability-else-after-return,
|
|
readability-implicit-bool-conversion,
|
|
readability-inconsistent-declaration-parameter-name,
|
|
readability-make-member-function-const,
|
|
readability-misplaced-array-index,
|
|
readability-non-const-parameter,
|
|
readability-qualified-auto,
|
|
readability-redundant-function-ptr-dereference,
|
|
readability-redundant-smartptr-get,
|
|
readability-redundant-string-cstr,
|
|
readability-simplify-subscript-expr,
|
|
readability-static-accessed-through-instance,
|
|
readability-static-definition-in-anonymous-namespace,
|
|
readability-string-compare,
|
|
readability-suspicious-call-argument,
|
|
readability-uniqueptr-delete-release,
|
|
-bugprone-exception-escape,
|
|
-bugprone-reserved-identifier,
|
|
-bugprone-unused-raii,
|
|
'
|
|
|
|
CheckOptions:
|
|
- key: performance-for-range-copy.WarnOnAllAutoCopies
|
|
value: true
|
|
- key: performance-unnecessary-value-param.AllowedTypes
|
|
value: 'exception_ptr$;'
|
|
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
|
value: true
|
|
|
|
HeaderFilterRegex: 'pybind11/.*h'
|
|
|
|
WarningsAsErrors: '*'
|