Commit Graph

  • 5bfe727c3f Merge branch 'master' into sh_merge_master Ralf W. Grosse-Kunstleve 2024-07-29 11:18:11 -0700
  • 64a7b44eae Merge branch 'master' into rm_py37 Ralf W. Grosse-Kunstleve 2024-07-29 11:16:17 -0700
  • 2e260b067f
    clang-tidy upgrade (to version 18) (#5272) Ralf W. Grosse-Kunstleve 2024-07-30 01:10:03 +0700
  • 3fbb4aae63 Fix silly oversight. Ralf W. Grosse-Kunstleve 2024-07-29 00:41:54 -0700
  • 59aa8c3a9a clang-tidy auto-fix Ralf W. Grosse-Kunstleve 2024-07-29 00:14:22 -0700
  • b812ebc707 Introduce PYBIND11_REINTERPRET_CAST_VOID_PTR_IF_NOT_PYPY to resolve PyPy build errors: Ralf W. Grosse-Kunstleve 2024-07-29 00:10:53 -0700
  • e5025a1fd0 Resolve clang-tidy bugprone-multi-level-implicit-pointer-conversion warnings. ________ Debian clang version 18.1.8 (++20240718080534+3b5b5c1ec4a3-1~exp1~20240718200641.143) Target: x86_64-pc-linux-gnu ________ ``` pybind11/detail/internals.h:556:53: warning: multilevel pointer conversion from 'internals **' to 'const void *', please use explicit cast [bugprone-multi-level-implicit-pointer-conversion] Ralf W. Grosse-Kunstleve 2024-07-28 22:45:37 -0700
  • 183e7c7360 Add 8 // NOLINT(bugprone-empty-catch) Ralf W. Grosse-Kunstleve 2024-07-28 22:27:01 -0700
  • e755791743 Disable bugprone-chained-comparison: this clang-tidy check is incompatible with the Catch2 REQUIRE macro (26 warnings like the one below). ________ Ralf W. Grosse-Kunstleve 2024-07-28 22:19:01 -0700
  • 7bf9b82e2f Fix inconsistent pybind11/eigen/tensor.h behavior: Ralf W. Grosse-Kunstleve 2024-07-28 21:39:30 -0700
  • 3e5fb45fd2 Add NOLINTNEXTLINE(clang-analyzer-optin.core.EnumCastOutOfRange) in test_tagbased_polymorphic.cpp Ralf W. Grosse-Kunstleve 2024-07-28 20:41:48 -0700
  • 99d84a9d25 Add clang-17 and clang-18 testing. Ralf W. Grosse-Kunstleve 2024-07-28 20:34:44 -0700
  • 19808cc800 Add explicit switch default to resolve clang-tidy bugprone-switch-missing-default-case Ralf W. Grosse-Kunstleve 2024-07-28 20:28:06 -0700
  • 25238cb888 Temporarily turn off 3 diagnostics (to be tackled one-by-one). Ralf W. Grosse-Kunstleve 2024-07-28 20:08:48 -0700
  • c4106a2841 Disable performance-enum-size (noisy, low value) Ralf W. Grosse-Kunstleve 2024-07-28 20:13:35 -0700
  • 3b537935d0 clang-tidy auto-fix (trivial, in test only) Ralf W. Grosse-Kunstleve 2024-07-28 20:13:29 -0700
  • 2c47d1a2f2 container: silkeh/clang:18-bookworm in .github/workflows/format.yml Ralf W. Grosse-Kunstleve 2024-07-28 19:10:21 -0700
  • 4b25159e0a Miscellaneous changes based on manual review of the git grep matches below: Ralf W. Grosse-Kunstleve 2024-07-28 10:15:59 -0700
  • 5de12148b6 Merge branch 'master' into rm_py37 Ralf W. Grosse-Kunstleve 2024-07-27 19:48:30 -0700
  • 4a7f895f4e README_smart_holder.rst update (line count reduced from 356 to 123). Ralf W. Grosse-Kunstleve 2024-07-27 01:15:35 -0700
  • 0ca3ca7360 Add SMART_HOLDER_BAKEIN_FOLLOW_ON comment for internals::default_holder Ralf W. Grosse-Kunstleve 2024-07-26 22:58:41 -0700
  • 7c0aed7365 Remove obsolete using holder_type = smart_holder; in load_helper Ralf W. Grosse-Kunstleve 2024-07-26 22:50:39 -0700
  • 523eafa103 Resolve all remaining BAKEIN_WIP (in pybind11/cast.h). Ralf W. Grosse-Kunstleve 2024-07-26 20:46:54 -0700
  • 053467f13c Resolve BAKEIN_WIP: Add comment to explain: This is meant for stress-testing only. Ralf W. Grosse-Kunstleve 2024-07-26 20:37:51 -0700
  • 0316f74401 Resolve BAKEIN_WIP: Rewrite comment. for property_cpp_function_* specializations. Ralf W. Grosse-Kunstleve 2024-07-26 20:20:16 -0700
  • 948c1d3113 style: pre-commit fixes pre-commit-ci[bot] 2024-07-26 14:47:55 +0000
  • fd7d4d0c9b skip typevar Michael Carlstrom 2024-07-26 10:47:30 -0400
  • d1dc670142 skip typevar for now Michael Carlstrom 2024-07-26 10:47:08 -0400
  • 479dffd98e is None Michael Carlstrom 2024-07-26 10:43:27 -0400
  • e98fb5a10e style: pre-commit fixes pre-commit-ci[bot] 2024-07-26 14:41:46 +0000
  • 9e7ae0d99c add missing semi colon Michael Carlstrom 2024-07-26 10:40:35 -0400
  • 8214dad571 style: pre-commit fixes pre-commit-ci[bot] 2024-07-26 14:40:01 +0000
  • 2567f44fa2 try no name wrapper Michael Carlstrom 2024-07-26 10:38:01 -0400
  • 5fb5ed9ab5 fix PYBIND11_OBJECT_DEFUALT Michael Carlstrom 2024-07-26 10:29:21 -0400
  • 6f07805421 use detail:: Michael Carlstrom 2024-07-26 10:26:50 -0400
  • 960d4bcd95 style: pre-commit fixes pre-commit-ci[bot] 2024-07-26 14:22:40 +0000
  • c6ba82cbba try name wrapper? Michael Carlstrom 2024-07-26 10:21:41 -0400
  • 07ccee567f fix unused variable Michael Carlstrom 2024-07-26 10:16:49 -0400
  • 1ad0e6ebfa style: pre-commit fixes pre-commit-ci[bot] 2024-07-26 14:14:15 +0000
  • 445fee025c remove unused import Michael Carlstrom 2024-07-26 10:11:21 -0400
  • bb829344b5 prototype Michael Carlstrom 2024-07-26 10:03:06 -0400
  • cb6a85fab7 Make change as suggested by @laramiel. This makes it much more obvious that the latest implementation of smart_holder_from_unique_ptr() accepts all existing return_value_policy enum values except copy. Ralf W. Grosse-Kunstleve 2024-07-26 00:58:17 -0700
  • 336860dfe6 Systematically rename loaded_as to load_as (shared_ptr, unique_ptr) as suggested by @laramiel Ralf W. Grosse-Kunstleve 2024-07-26 00:46:54 -0700
  • 2644d6e424 Use PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT in holder_comparison.cpp (holder_comparison.py is NOT changed accordingly in this commit, i.e. can still only be run if the smart_holder functionality is available). Ralf W. Grosse-Kunstleve 2024-07-25 22:54:46 -0700
  • 0bcfbd475d Call property_cpp_function_classic member functions, rather than inlining the implementations. Ralf W. Grosse-Kunstleve 2024-07-25 22:44:14 -0700
  • 16cf7adf01 property_cpp_function_sh_* named specializations, as suggested by @laramiel (https://github.com/pybind/pybind11/pull/5257#discussion_r1688346807) Ralf W. Grosse-Kunstleve 2024-07-25 22:04:38 -0700
  • 99b6572214 Insert std::move() as suggested by @laramiel Ralf W. Grosse-Kunstleve 2024-07-25 21:25:32 -0700
  • c189ade3f9
    Merge branch 'pybind:master' into master Steve R. Sun 2024-07-24 10:33:01 +0800
  • 8e7307f069
    docs: remove outdated known limitation. (#5263) Theodore Tsirpanis 2024-07-24 05:32:39 +0300
  • 09eb67ba1f
    Remove outdated known limitation. Theodore Tsirpanis 2024-07-23 22:01:19 +0300
  • f91e4f41ba
    Fix typo. Theodore Tsirpanis 2024-07-23 21:19:05 +0300
  • c02d2cd4ec Restore smart_holder_poc.h as-is on smart_holder branch (i.e. undo PYBIND11_SMART_HOLDER_PADDING, which was meant for stress-testing only). Ralf W. Grosse-Kunstleve 2024-07-22 19:13:35 -0700
  • 58f9e1808d Merge branch 'smart_holder' into bakein_sh Ralf W. Grosse-Kunstleve 2024-07-22 02:32:23 -0700
  • ec557ff612
    Backport non-functional test_class_sh_*.cpp changes from PR #5213: 1. To avoid compiler warnings for unused code in the unnamed namespace. 2. To avoid clang-format changes. (#5258) Ralf W. Grosse-Kunstleve 2024-07-22 15:56:42 +0700
  • c4c3d9a06f Import non-functional test changes made on smart_holder branch under PR #5258. Ralf W. Grosse-Kunstleve 2024-07-22 01:37:20 -0700
  • c3e7234ee4 Backport non-functional test_class_sh_*.cpp changes from PR #5213: 1. To avoid compiler warnings for unused code in the unnamed namespace. 2. To avoid clang-format changes. Ralf W. Grosse-Kunstleve 2024-07-21 18:37:11 -0700
  • fbd1295d54 Add back README_smart_holder.rst in tests/extra_python_package/test_files.py Ralf W. Grosse-Kunstleve 2024-07-20 20:15:04 -0700
  • 82c9ce7ee6 Put bakein branch @ 18b72c0ffa on top of smart_holder branch: Ralf W. Grosse-Kunstleve 2024-07-20 20:03:59 -0700
  • 18b72c0ffa Tie PYBIND11_INTERNALS_VERSION 6 to PYBIND11_VERSION_MAJOR >= 3 Ralf W. Grosse-Kunstleve 2024-07-20 19:57:52 -0700
  • 89d0ddd6ff test_class.cpp: simpler approach, leveraging new PYBIND11_ACTUALLY_USING_SMART_HOLDER_AS_DEFAULT Ralf W. Grosse-Kunstleve 2024-07-20 19:40:38 -0700
  • d0003f5660 Move classh into pybind11/pybind11.h and update test_classh_mock.cpp accordingly. Ralf W. Grosse-Kunstleve 2024-07-20 17:53:37 -0700
  • 51a968c954
    Import additional test code originally added under PR #5213 (test_class_sh_property_bakein) (#5256) Ralf W. Grosse-Kunstleve 2024-07-20 15:00:11 +0700
  • 9f9a698ee9 Remove redundant test_class_sh_property_bakein.cpp,py Ralf W. Grosse-Kunstleve 2024-07-20 00:48:35 -0700
  • 84f71f1b69 Import https://github.com/pybind/pybind11/pull/5256 from smart_holder branch back here (same test code as in test_class_sh_property_bakein.cpp,py). Ralf W. Grosse-Kunstleve 2024-07-20 00:37:57 -0700
  • f282f49c49 Import additional test code originally added under PR #5213 (test_class_sh_property_bakein) Ralf W. Grosse-Kunstleve 2024-07-20 00:28:54 -0700
  • 800e5e1df3
    Remove type_caster_odr_guard feature. (The feature will continue to live in the pybind11k repo.) (#5255) Ralf W. Grosse-Kunstleve 2024-07-20 13:55:22 +0700
  • 3a39dd095f Remove type_caster_odr_guard feature. (The feature will continue to live in the pybind11k repo.) Ralf W. Grosse-Kunstleve 2024-07-19 23:12:40 -0700
  • 8fd495afcf
    Remove test_exc_namespace_visibility.py and its dependencies. (The test will continue to live in the pybind11k repo.) (#5254) Ralf W. Grosse-Kunstleve 2024-07-20 12:18:14 +0700
  • 8370440052 Remove test_exc_namespace_visibility.py and its dependencies. (The test will continue to live in the pybind11k repo.) Ralf W. Grosse-Kunstleve 2024-07-19 21:57:12 -0700
  • df54a82dab Introduce PYBIND11_SMART_HOLDER_PADDING_ON (as the only way to turn on padding). Ralf W. Grosse-Kunstleve 2024-07-19 20:05:53 -0700
  • 5566c63ebf Move try_initialization_using_shared_from_this into PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT block. Ralf W. Grosse-Kunstleve 2024-07-19 19:42:12 -0700
  • 35b1177f42 Small cleanup in detail/init.h: strip originally_smart_holder_type_casters_h namespace. Ralf W. Grosse-Kunstleve 2024-07-19 19:06:07 -0700
  • 62b6c8e404 Revert "Add "_sh_baked_in" to PYBIND11_INTERNALS_ID, PYBIND11_MODULE_LOCAL_ID" Ralf W. Grosse-Kunstleve 2024-07-19 18:55:18 -0700
  • 4a66b46080 ifdef out more code if PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT is not defined. Ralf W. Grosse-Kunstleve 2024-07-19 10:43:02 -0700
  • 41433f632a ifdef out classh if PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT is not defined. Ralf W. Grosse-Kunstleve 2024-07-19 10:31:41 -0700
  • e4456197c4 Ignore PYBIND11_USE_SMART_HOLDER_AS_DEFAULT if PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT is not defined. Ralf W. Grosse-Kunstleve 2024-07-19 10:18:05 -0700
  • 95e9053f7f Boilerplate changes: Skip all test_class_sh_* if PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT is not defined. Ralf W. Grosse-Kunstleve 2024-07-19 09:37:45 -0700
  • 6fb8b5157d Add back original copyable_holder_caster check_holder_compat() in the std::shared_ptr specialization and remove pytest.skip("BAKEIN_EXPECTED: ...) in test_smart_ptr.py Ralf W. Grosse-Kunstleve 2024-07-19 09:00:03 -0700
  • cc2a428142 Bring in ci.yml, ci_sh_def.yml, ci_sh_def.yml.patch from smart_holder branch as-is. Ralf W. Grosse-Kunstleve 2024-07-19 00:44:13 -0700
  • 7296c39705 Introduce detail/using_smart_holder.h and remove pybindit::memory:: in most places. Ralf W. Grosse-Kunstleve 2024-07-19 00:23:14 -0700
  • 583c07bffd Use std::unique_ptr<T> as default holder again. Ralf W. Grosse-Kunstleve 2024-07-18 23:00:36 -0700
  • 58a1b75e43 Reinterpret detail::type_info::default_holder as "uses std::unique_ptr holder" (which is the original meaning, and compatible with the original smart_holder branch). Ralf W. Grosse-Kunstleve 2024-07-18 22:31:21 -0700
  • cd4f5f6c5b PYBIND11_HAVE_INTERNALS_WITH_SMART_HOLDER_SUPPORT Ralf W. Grosse-Kunstleve 2024-07-18 18:59:52 -0700
  • 1ea1787745 Remove overlooked BAKEIN_BREAK in test_class_sh_property_non_owning.cpp,py (tests pass without any further changes). Ralf W. Grosse-Kunstleve 2024-07-18 22:43:39 -0700
  • 0c24110c31
    Merge branch 'pybind:master' into master Steve R. Sun 2024-07-19 09:20:30 +0800
  • e933e21e77 Replace #include "detail/type_caster_base.h" with #include "detail/value_and_holder.h" in trampoline_self_life_support.h. This was made possible by PR #5251. Ralf W. Grosse-Kunstleve 2024-07-18 18:16:12 -0700
  • 08e234d810 Merge branch 'master' into sh_merge_master Ralf W. Grosse-Kunstleve 2024-07-18 18:04:48 -0700
  • 6d8952a283 Merge branch 'master' into bakein Ralf W. Grosse-Kunstleve 2024-07-18 17:41:47 -0700
  • 6d4805ced1
    Small cleanup/refactoring in support of PR #5213 (#5251) Ralf W. Grosse-Kunstleve 2024-07-19 07:34:06 +0700
  • a582ca8a8e
    tests: run on pyodide (#4745) Henry Schreiner 2024-07-18 14:50:38 -0400
  • c9a83e5216 tests: revert changes to test_embed Henry Schreiner 2024-06-26 16:15:21 -0400
  • b218b343cd ci: use cibuildwheel for pyodide test Henry Schreiner 2024-06-26 15:26:57 -0400
  • 1695ddeb64 tests: run on pyodide Henry Schreiner 2023-05-15 16:53:57 -0400
  • 4aa2f6b8eb Merge branch 'bakein_prep_on_master' into bakein Ralf W. Grosse-Kunstleve 2024-07-18 01:29:47 -0700
  • 92d7724de4 Add DANGER ZONE comment in detail/init.h, similar to a comment added on the smart_holder branch (all the way back in 2021). Ralf W. Grosse-Kunstleve 2024-07-18 01:25:36 -0700
  • 1ca810e8c7 Undo DANGER ZONE comment (brought in from smart_holder branch; before adding to PR #5251). Ralf W. Grosse-Kunstleve 2024-07-18 01:21:38 -0700
  • 9a27e29ebd Leverage PR #5251 to bring back trampoline_self_life_support.h from smart_holder branch almost as-is. Ralf W. Grosse-Kunstleve 2024-07-18 01:10:48 -0700
  • 7fa6dd9d1c Merge branch 'bakein_prep_on_master' into bakein Ralf W. Grosse-Kunstleve 2024-07-18 01:01:05 -0700
  • 54fd559117 Fix a minor and inconsequential inconsistency in copyable_holder_caster: the correct load_value() return type is void (as defined in type_caster_generic) Ralf W. Grosse-Kunstleve 2024-07-18 00:47:00 -0700
  • 5e30064ee6 Factor out detail/value_and_holder.h (from detail/type_caster_base.h) Ralf W. Grosse-Kunstleve 2024-07-18 00:24:59 -0700