2020-09-11 01:16:40 +00:00
|
|
|
FormatStyle: file
|
|
|
|
|
|
|
|
Checks: '
|
2021-08-06 18:30:28 +00:00
|
|
|
*bugprone*,
|
2021-07-13 13:54:32 +00:00
|
|
|
cppcoreguidelines-init-variables,
|
2021-08-23 22:42:19 +00:00
|
|
|
cppcoreguidelines-slicing,
|
2021-07-09 13:45:53 +00:00
|
|
|
clang-analyzer-optin.cplusplus.VirtualCall,
|
CodeHealth: Enabling clang-tidy google-explicit-constructor (#3250)
* 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.
2021-09-09 01:53:38 +00:00
|
|
|
google-explicit-constructor,
|
2020-09-11 01:16:40 +00:00
|
|
|
llvm-namespace-comment,
|
2021-06-21 14:37:48 +00:00
|
|
|
misc-misplaced-const,
|
2021-07-27 22:32:26 +00:00
|
|
|
misc-non-copyable-objects,
|
2021-06-21 14:37:48 +00:00
|
|
|
misc-static-assert,
|
2021-07-13 13:54:32 +00:00
|
|
|
misc-throw-by-value-catch-by-reference,
|
2021-06-21 14:37:48 +00:00
|
|
|
misc-uniqueptr-reset-release,
|
2021-07-27 22:32:26 +00:00
|
|
|
misc-unused-parameters,
|
2021-06-19 22:38:56 +00:00
|
|
|
modernize-avoid-bind,
|
2021-07-27 22:32:26 +00:00
|
|
|
modernize-make-shared,
|
2021-07-09 13:45:53 +00:00
|
|
|
modernize-redundant-void-arg,
|
2021-06-19 22:38:56 +00:00
|
|
|
modernize-replace-auto-ptr,
|
|
|
|
modernize-replace-disallow-copy-and-assign-macro,
|
2021-07-27 22:32:26 +00:00
|
|
|
modernize-replace-random-shuffle,
|
2021-06-19 22:38:56 +00:00
|
|
|
modernize-shrink-to-fit,
|
2020-09-11 03:20:47 +00:00
|
|
|
modernize-use-auto,
|
2021-06-21 14:37:48 +00:00
|
|
|
modernize-use-bool-literals,
|
2021-06-19 22:38:56 +00:00
|
|
|
modernize-use-equals-default,
|
|
|
|
modernize-use-equals-delete,
|
2021-06-21 14:37:48 +00:00
|
|
|
modernize-use-default-member-init,
|
|
|
|
modernize-use-noexcept,
|
2020-09-11 03:26:50 +00:00
|
|
|
modernize-use-emplace,
|
2021-06-19 22:38:56 +00:00
|
|
|
modernize-use-override,
|
|
|
|
modernize-use-using,
|
2021-06-22 16:11:54 +00:00
|
|
|
*performance*,
|
2021-07-27 22:32:26 +00:00
|
|
|
readability-avoid-const-params-in-decls,
|
2021-09-10 04:27:36 +00:00
|
|
|
readability-const-return-type,
|
2021-06-19 22:38:56 +00:00
|
|
|
readability-container-size-empty,
|
2021-07-27 22:32:26 +00:00
|
|
|
readability-delete-null-pointer,
|
2021-09-10 04:27:36 +00:00
|
|
|
readability-else-after-return,
|
2021-07-27 22:32:26 +00:00
|
|
|
readability-implicit-bool-conversion,
|
2021-06-21 14:37:48 +00:00
|
|
|
readability-make-member-function-const,
|
2021-07-27 22:32:26 +00:00
|
|
|
readability-misplaced-array-index,
|
|
|
|
readability-non-const-parameter,
|
2021-06-21 14:37:48 +00:00
|
|
|
readability-redundant-function-ptr-dereference,
|
|
|
|
readability-redundant-smartptr-get,
|
|
|
|
readability-redundant-string-cstr,
|
|
|
|
readability-simplify-subscript-expr,
|
2021-07-27 22:32:26 +00:00
|
|
|
readability-static-accessed-through-instance,
|
|
|
|
readability-static-definition-in-anonymous-namespace,
|
2021-06-21 14:37:48 +00:00
|
|
|
readability-string-compare,
|
2022-01-12 01:34:16 +00:00
|
|
|
readability-suspicious-call-argument,
|
2021-06-21 14:37:48 +00:00
|
|
|
readability-uniqueptr-delete-release,
|
2021-08-06 18:30:28 +00:00
|
|
|
-bugprone-exception-escape,
|
|
|
|
-bugprone-reserved-identifier,
|
|
|
|
-bugprone-unused-raii,
|
2020-09-11 01:16:40 +00:00
|
|
|
'
|
|
|
|
|
2021-06-19 17:53:27 +00:00
|
|
|
CheckOptions:
|
2021-07-13 13:54:32 +00:00
|
|
|
- key: performance-for-range-copy.WarnOnAllAutoCopies
|
|
|
|
value: true
|
2021-06-19 17:53:27 +00:00
|
|
|
- key: performance-unnecessary-value-param.AllowedTypes
|
|
|
|
value: 'exception_ptr$;'
|
2021-07-27 22:32:26 +00:00
|
|
|
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
|
|
|
value: true
|
2021-06-19 17:53:27 +00:00
|
|
|
|
2020-09-11 01:16:40 +00:00
|
|
|
HeaderFilterRegex: 'pybind11/.*h'
|
2021-06-19 22:38:56 +00:00
|
|
|
|
|
|
|
WarningsAsErrors: '*'
|