1. 03 Aug, 2021 3 commits
  2. 30 Jul, 2021 4 commits
  3. 29 Jul, 2021 1 commit
    • Ralf W. Grosse-Kunstleve's avatar
      Removing MSVC C4100 from pragma block at the top of pybind11.h (#3150) · b72ca7d1
      Ralf W. Grosse-Kunstleve authored
      * Removing pragma for 4100 (to see what is still broken with the latest code).
      
      * Adding --keep-going
      
      * Revert "Adding --keep-going"
      
      This reverts commit 1c844c6ffd07a6111b644811e7e3b0a50b9d44bb.
      
      * Introducing PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100.
      
      * _MSC_VER <= 1916
      
      * Replacing simple variadic function with variadic template (attempt to resolve MSVC 2017 failures).
      
      * Preserving existing comment (moved from pybind11.h to detail/common.h).
      
      * Adding blank lines for readability.
      b72ca7d1
  4. 28 Jul, 2021 1 commit
  5. 27 Jul, 2021 3 commits
    • Ralf W. Grosse-Kunstleve's avatar
      Removing __INTEL_COMPILER section from pragma block at the top of pybind11.h (#3135) · 2164c2e0
      Ralf W. Grosse-Kunstleve authored
      * Fixing `pragma warning pop` for `__INTEL_COMPILER`.
      
      * Adding push/pop to 3 tests. Removing #878 from top of pybind11.h (it was/is only needed for 1 test).
      
      * Trying again after CI failure, moving the push to the top of 2 tests.
      
      * Trying more after CI failure, adding push/pop to pybind11_tests.h, constructor_stats.h.
      
      * Moving ICC #2196 suppression to CMakeLists.txt
      
      * Fixing condition for `pragma GCC diagnostic push` in pybind11.h
      
      * Moving `pragma warning disable 2196` to common.h
      
      * Revising #ifdef to be more conservative.
      
      * Undoing insertion of notes that will hopefully soon be completely obsolete anyway.
      2164c2e0
    • Aaron Gokaslan's avatar
      maint(clang-tidy): Improve code readability with explicit boolean casts (#3148) · 9beaa925
      Aaron Gokaslan authored
      * maint(clang-tidy) Improve code readability
      
      * Fix minor typos
      
      * Revert optimization that removed test case
      
      * Fix comment formatting
      
      * Revert another optimization to repro an issue
      
      * Remove make_unique since it C++14 and newer only
      
      * eformat comments
      
      * Fix unsignedness of comparison
      
      * Update comment
      9beaa925
    • David Hewitt's avatar
      Allow python builtins to be used as callbacks (#1413) · a0b97596
      David Hewitt authored
      * Allow python builtins to be used as callbacks
      
      * Try to fix pypy segfault
      
      * Add expected fail for PyPy
      
      * Fix typo
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      
      
      * Add more info to xfail
      
      * Add env
      
      * Try returning false
      
      * Try removing the move for pypy
      
      * Fix bugs
      
      * Try removing move
      
      * Just keep ignoring for PyPy
      
      * Add back xfail
      
      * Fix ctors
      
      * Revert change of std::move
      
      * Change to skip
      
      * Fix bug and edit comments
      
      * Remove clang-tidy bugprone fix skip bug
      Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
      Co-authored-by: default avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      a0b97596
  6. 26 Jul, 2021 3 commits
  7. 21 Jul, 2021 1 commit
    • jesse-sony's avatar
      Feature/local exception translator (#2650) · d65edfb0
      jesse-sony authored
      * Create a module_internals struct
      
      Since we now have two things that are going to be module local, it felt
      correct to add a struct to manage them.
      
      * Add local exception translators
      
      These are added via the  register_local_exception_translator function
      and are then applied before the global translators
      
      * Add unit tests to show the local exception translator works
      
      * Fix a bug in the unit test with the string value of KeyError
      
      * Fix a formatting issue
      
      * Rename registered_local_types_cpp()
      
      Rename it to get_registered_local_types_cpp() to disambiguate from the
      new member of module_internals
      
      * Add additional comments to new local exception code path
      
      * Add a register_local_exception function
      
      * Add additional unit tests for register_local_exception
      
      * Use get_local_internals like get_internals
      
      * Update documentation for new local exception feature
      
      * Add back a missing space
      
      * Clean-up some issues in the docs
      
      * Remove the code duplication when translating exceptions
      
      Separated out the exception processing into a standalone function in the
      details namespace.
      
      Clean-up some comments as per PR notes as well
      
      * Remove the code duplication in register_exception
      
      * Cleanup some formatting things caught by clang-format
      
      * Remove the templates from exception translators
      
      But I added a using declaration to alias the type.
      
      * Remove the extra local from local_internals variable names
      
      * Add an extra explanatory comment to local_internals
      
      * Fix a typo in the code
      d65edfb0
  8. 20 Jul, 2021 1 commit
  9. 17 Jul, 2021 2 commits
  10. 16 Jul, 2021 1 commit
  11. 15 Jul, 2021 2 commits
  12. 14 Jul, 2021 2 commits
  13. 13 Jul, 2021 2 commits
  14. 12 Jul, 2021 2 commits
  15. 09 Jul, 2021 1 commit
  16. 08 Jul, 2021 1 commit
  17. 06 Jul, 2021 1 commit
  18. 04 Jul, 2021 1 commit
  19. 02 Jul, 2021 2 commits
  20. 01 Jul, 2021 2 commits
  21. 30 Jun, 2021 1 commit
    • Ralf W. Grosse-Kunstleve's avatar
      pickle setstate: setattr __dict__ only if not empty (#2972) · fbae8f31
      Ralf W. Grosse-Kunstleve authored
      * pickle setstate: setattr __dict__ only if not empty, to not force use of py::dynamic_attr() unnecessarily.
      
      * Adding unit test.
      
      * Clang 3.6 & 3.7 compatibility.
      
      * PyPy compatibility.
      
      * Minor iwyu fix, additional comment.
      
      * Addressing reviewer requests.
      
      * Applying clang-tidy suggested fixes.
      
      * Adding check_dynamic_cast_SimpleCppDerived, related to issue #3062.
      fbae8f31
  22. 26 Jun, 2021 1 commit
  23. 22 Jun, 2021 1 commit
    • Aaron Gokaslan's avatar
      fix(clang-tidy): performance fixes applied in tests and CI (#3051) · dac74ebd
      Aaron Gokaslan authored
      * Initial fixes
      
      * Whoops
      
      * Finish clang-tidy manual fixes
      
      * Add two missing fixes
      
      * Revert
      
      * Update clang-tidy
      
      * Try to fix unreachable code error
      
      * Move nolint comment
      
      * Apply missing fix
      
      * Don't override clang-tidy config
      
      * Does this fix clang-tidy?
      
      * Make all clang-tidy errors visible
      
      * Add comments about NOLINTs and remove a few
      
      * Fix typo
      dac74ebd
  24. 21 Jun, 2021 1 commit