Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git merge smart_holder (pybind/pybind11#5161) #30125

Merged
merged 3 commits into from
Jun 12, 2024
Merged

Conversation

rwgk
Copy link
Contributor

@rwgk rwgk commented Jun 12, 2024

Description

Helper/scratch PR for testing.

Corresponding to: pybind/pybind11#5161

Suggested changelog entry:

Ralf W. Grosse-Kunstleve added 3 commits June 11, 2024 14:00
…urn type. (google#5156)

* Transfer diff from pybind11k fork as-is. New tests are still missing.

* Add `PYBIND11_WARNING_DISABLE_MSVC(4127)` into `PYBIND11_OVERRIDE_IMPL` macro.

* Add test_trampoline_with_pyobject_ptr_return()

* Resolve clang-tidy error: use auto when initializing with a template cast to avoid duplicating the type name [modernize-use-auto,-warnings-as-errors]

* Disabled checking refcount when building with PyPy.

* Clang 3.6, 3.7, 3.9 compatibility.

```
/__w/pybind11/pybind11/tests/test_type_caster_pyobject_ptr.cpp:23:13: error: definition of implicit copy constructor for 'WithPyObjectPtrReturn' is deprecated because it has a user-declared destructor [-Werror,-Wdeprecated]
    virtual ~WithPyObjectPtrReturn() = default;
            ^
```

* Minor clean-up of production code changes.

* Add missing `override` (to resolve clang-tidy error).

* Move PYBIND11_WARNING_POP for a better clang-format outcome.
Merge conflicts resolved in:
    include/pybind11/pybind11.h
    tests/test_type_caster_pyobject_ptr.cpp
    tests/test_type_caster_pyobject_ptr.py
@rwgk rwgk marked this pull request as ready for review June 12, 2024 05:22
@rwgk rwgk merged commit cf8345e into google:main Jun 12, 2024
145 checks passed
@rwgk rwgk deleted the pybind11k_merge_sh branch June 12, 2024 05:23
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant