mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
6abf2baa62
* Adding google-explicit-constructor to .clang-tidy * clang-tidy explicit attr.h (all automatic) * clang-tidy explicit cast.h (all automatic) * clang-tidy detail/init.h (1 NOLINT) * clang-tidy detail/type_caster_base.h (2 NOLINT) * clang-tidy pybind11.h (7 NOLINT) * clang-tidy detail/common.h (3 NOLINT) * clang-tidy detail/descr.h (2 NOLINT) * clang-tidy pytypes.h (23 NOLINT, only 1 explicit) * clang-tidy eigen.h (7 NOLINT, 0 explicit) * Adding 2 explicit in functional.h * Adding 4 explicit in iostream.h * clang-tidy numpy.h (1 NOLINT, 1 explicit) * clang-tidy embed.h (0 NOLINT, 1 explicit) * clang-tidy tests/local_bindings.h (0 NOLINT, 4 explicit) * clang-tidy tests/pybind11_cross_module_tests.cpp (0 NOLINT, 1 explicit) * clang-tidy tests/pybind11_tests.h (0 NOLINT, 2 explicit) * clang-tidy tests/test_buffers.cpp (0 NOLINT, 2 explicit) * clang-tidy tests/test_builtin_casters.cpp (0 NOLINT, 4 explicit) * clang-tidy tests/test_class.cpp (0 NOLINT, 6 explicit) * clang-tidy tests/test_copy_move.cpp (0 NOLINT, 7 explicit) * clang-tidy tests/test_embed/external_module.cpp (0 NOLINT, 1 explicit) * clang-tidy tests/test_embed/test_interpreter.cpp (0 NOLINT, 1 explicit) * clang-tidy tests/object.h (0 NOLINT, 2 explicit) * clang-tidy batch of fully automatic fixes. * Workaround for MSVC 19.16.27045.0 C++17 Python 2 C++ syntax error.
65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
FormatStyle: file
|
|
|
|
Checks: '
|
|
*bugprone*,
|
|
cppcoreguidelines-init-variables,
|
|
cppcoreguidelines-slicing,
|
|
clang-analyzer-optin.cplusplus.VirtualCall,
|
|
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-container-size-empty,
|
|
readability-else-after-return,
|
|
readability-delete-null-pointer,
|
|
readability-implicit-bool-conversion,
|
|
readability-make-member-function-const,
|
|
readability-misplaced-array-index,
|
|
readability-non-const-parameter,
|
|
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-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: '*'
|