mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 07:51:47 +00:00
maint(clang-tidy): Improve code readability with explicit boolean casts (#3148)
* 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
This commit is contained in:
@@ -59,7 +59,7 @@ TEST_SUBMODULE(numpy_vectorize, m) {
|
||||
.def(py::init<int>())
|
||||
.def_readwrite("value", &NonPODClass::value);
|
||||
m.def("vec_passthrough",
|
||||
py::vectorize([](double *a,
|
||||
py::vectorize([](const double *a,
|
||||
double b,
|
||||
// Changing this broke things
|
||||
// NOLINTNEXTLINE(performance-unnecessary-value-param)
|
||||
|
||||
Reference in New Issue
Block a user