1
0
mirror of https://github.com/pybind/pybind11.git synced 2025-03-03 13:03:20 +00:00
pybind11/include/pybind11
Ralf W. Grosse-Kunstleve 4766065e5c
[smart_holder] test_class_sh_mi_thunks (started from PR ) ()
* Content of PR  applied on top of smart_holder branch.

* More tests, with USE_SH switch. [ci skip]

* Use `std::dynamic_pointer_cast<Base0>` [ci skip]

* All tests pass when using `m.make_derived_as_base0_raw_ptr()`, with `USE_SH` defined or not defined. [ci skip]

* WIP

* Debug LOOOK & one-line bug fix:

```diff
-        auto smhldr = pybindit::memory::smart_holder::from_shared_ptr(src);
+        auto smhldr = pybindit::memory::smart_holder::from_shared_ptr(std::shared_ptr<void>(src, const_cast<void *>(st.first)));
```

* Remove all print LOOOK and clang-format the fix.

* Resolve clang-tidy errors.

* Systematic test matrix.

* Bug fix in `smart_holder_type_caster<std::unique_ptr<T, D>>::cast()`

* Rename: test_mi_debug -> test_class_sh_mi_thunks

* Add `test_ptrdiff_derived_base0()`

* Miscellaneous polishing (naming, comments). No functional changes.

* Improve test_class_sh_mi_thunks.py implementation. No change in test coverage.

* Resolve clang-tidy error.
2022-12-12 19:55:16 -08:00
..
detail [smart_holder] test_class_sh_mi_thunks (started from PR ) () 2022-12-12 19:55:16 -08:00
eigen Merge branch 'master' into sh_merge_master 2022-12-08 23:19:31 -08:00
stl feature: support compilers that use std::experimental::filesystem () 2022-03-31 22:16:10 -07:00
attr.h Fix: 3.11 beta support () 2022-07-06 16:35:12 -04:00
buffer_info.h Fully-automatic clang-format with include reordering () 2022-02-10 12:17:07 -08:00
cast.h Merge branch 'master' into sh_merge_master 2022-12-08 23:19:31 -08:00
chrono.h chore: drop Python 3.5 () 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering () 2022-02-10 12:17:07 -08:00
eigen.h First draft of Eigen::Tensor support () 2022-10-18 16:54:16 -07:00
embed.h scoped_interpreter. overloaded constructor: PyConfig param () 2022-11-30 21:17:59 -08:00
eval.h fix: missing move in eval.h () 2022-03-02 15:25:43 -05:00
functional.h Fix functional.h bug + introduce test to verify that it is fixed () 2022-11-18 10:08:11 -08:00
gil.h Add PYBIND11_SIMPLE_GIL_MANAGEMENT option (cmake, C++ define) () 2022-10-30 08:57:23 -07:00
iostream.h chore: add err guard to capsule destructor and add a move to iostream () 2022-05-27 14:32:57 -04:00
numpy.h chore(deps): update pre-commit hooks () 2022-12-06 10:10:48 -08:00
operators.h Reproducer and fix for issue encountered in smart_holder update. () 2022-10-09 21:50:35 -07:00
options.h Add option for enable/disable enum members in docstring. () 2022-12-08 23:10:10 -08:00
pybind11.h Merge branch 'master' into sh_merge_master 2022-12-08 23:19:31 -08:00
pytypes.h pybind11::handle inc_ref() & dec_ref() PyGILState_Check() **excluding** nullptr () 2022-12-08 22:06:51 -08:00
smart_holder.h Automatic pre-commit run --all-files and clang-tidy changes (NO manual changes). 2022-02-14 19:00:40 -08:00
stl_bind.h Merge branch 'master' into sh_merge_master 2022-12-08 23:19:31 -08:00
stl.h Changes related to PR (new style of warning suppression based on push/pop) 2022-12-02 05:30:03 -08:00
trampoline_self_life_support.h Removing obsolete detail/pragma_warning_block.h 2021-08-14 08:42:38 -07:00