After clang-format (via pre-commit).

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-02-11 20:37:09 -08:00
parent 2ba40fc50b
commit d07865846c
2 changed files with 35 additions and 37 deletions

View File

@ -354,9 +354,7 @@ TEST_SUBMODULE(class_, m) {
using ProtectedA::foo;
};
py::class_<ProtectedA>(m, "ProtectedA")
.def(py::init<>())
.def("foo", &PublicistA::foo);
py::class_<ProtectedA>(m, "ProtectedA").def(py::init<>()).def("foo", &PublicistA::foo);
class ProtectedB {
public:

View File

@ -5,7 +5,7 @@
#include "pybind11_tests.h"
// IUT = Implementation Under Test
# define CONST_NAME_TESTS(TEST_FUNC, IUT) \
#define CONST_NAME_TESTS(TEST_FUNC, IUT) \
std::string TEST_FUNC(int selector) { \
switch (selector) { \
case 0: \
@ -40,9 +40,9 @@
CONST_NAME_TESTS(const_name_tests, py::detail::const_name)
# ifdef PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY
#ifdef PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY
CONST_NAME_TESTS(underscore_tests, py::detail::_)
# endif
#endif
TEST_SUBMODULE(const_name, m) {
m.def("const_name_tests", const_name_tests);