Automatic clang-format.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2021-06-24 12:53:58 -07:00 committed by Ralf W. Grosse-Kunstleve
parent a428f5755d
commit fa5ffc3d02

View File

@ -34,7 +34,8 @@ using FooSmHld = Foo<1>;
} // namespace } // namespace
} // namespace pybind11_tests } // namespace pybind11_tests
PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr, std::shared_ptr<pybind11_tests::FooShPtr>) PYBIND11_TYPE_CASTER_BASE_HOLDER(pybind11_tests::FooShPtr,
std::shared_ptr<pybind11_tests::FooShPtr>)
PYBIND11_SMART_HOLDER_TYPE_CASTERS(pybind11_tests::FooSmHld) PYBIND11_SMART_HOLDER_TYPE_CASTERS(pybind11_tests::FooSmHld)
namespace pybind11_tests { namespace pybind11_tests {
@ -45,8 +46,7 @@ TEST_SUBMODULE(class_sh_shared_ptr_copy_move, m) {
py::class_<FooShPtr, std::shared_ptr<FooShPtr>>(m, "FooShPtr") py::class_<FooShPtr, std::shared_ptr<FooShPtr>>(m, "FooShPtr")
.def("get_history", &FooShPtr::get_history); .def("get_history", &FooShPtr::get_history);
py::classh<FooSmHld>(m, "FooSmHld") py::classh<FooSmHld>(m, "FooSmHld").def("get_history", &FooSmHld::get_history);
.def("get_history", &FooSmHld::get_history);
m.def("test_ShPtr_copy", []() { m.def("test_ShPtr_copy", []() {
auto o = std::make_shared<FooShPtr>("copy"); auto o = std::make_shared<FooShPtr>("copy");