[all-commits] [llvm/llvm-project] 6350bb: [mlir][py] Mark all type caster `from_{cpp, python}...
Nicholas Junge via All-commits
all-commits at lists.llvm.org
Tue Jul 15 07:58:32 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6350bb3ed362ef5063ebd07d444d7dd4f5342541
https://github.com/llvm/llvm-project/commit/6350bb3ed362ef5063ebd07d444d7dd4f5342541
Author: Nicholas Junge <nicholas.junge at web.de>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M mlir/include/mlir/Bindings/Python/NanobindAdaptors.h
M mlir/test/python/dialects/python_test.py
M mlir/test/python/lib/PythonTestModuleNanobind.cpp
Log Message:
-----------
[mlir][py] Mark all type caster `from_{cpp,python}` methods as noexcept (#143866)
This is mentioned as a "must" in
https://nanobind.readthedocs.io/en/latest/porting.html#type-casters when
implementing type casters.
While most of the existing `from_cpp` methods were already marked
noexcept, many of the `from_python` methods were not. This commit adds
the missing noexcept declarations to all type casters found in
`NanobindAdaptors.h`.
---------
Co-authored-by: Maksim Levental <maksim.levental at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list