Commit Graph

4 Commits

Author SHA1 Message Date
Ralf W. Grosse-Kunstleve
a4816471e1 Resolve clang-tidy errors
```
/__w/pybind11/pybind11/tests/test_class_sh_trampoline_weak_ptr.cpp:23:43: error: the parameter 'sp' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
   23 |     void set_wp(std::shared_ptr<VirtBase> sp) { wp = sp; }
      |                                           ^
      |                 const                    &
4443 warnings generated.
```

```
/__w/pybind11/pybind11/tests/test_class_sp_trampoline_weak_ptr.cpp:23:43: error: the parameter 'sp' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]
   23 |     void set_wp(std::shared_ptr<VirtBase> sp) { wp = sp; }
      |                                           ^
      |                 const                    &
4430 warnings generated.
```
2025-04-19 13:39:01 -07:00
Ralf W. Grosse-Kunstleve
2fe82b2fdf [skip ci] Simplify test case. 2025-04-19 00:18:23 -07:00
Noah Oblath
b160f6c2b1 Cleanup 2025-04-17 15:17:22 -07:00
Noah Oblath
50c3c1e89e Added weak_ptr test (currently failing) 2025-04-15 17:25:54 -07:00