Skip to content

Commit 966788e

Browse files
authored
Add test_class_sh_property_stl to CMakeLists.txt (google#30017)
* Add test_class_sh_property_stl to CMakeLists.txt (fixes oversight in PR google#30012) * clang-tidy auto fixes
1 parent 43df8a4 commit 966788e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ set(PYBIND11_TEST_FILES
130130
test_class_sh_mi_thunks
131131
test_class_sh_module_local.py
132132
test_class_sh_property
133+
test_class_sh_property_stl
133134
test_class_sh_shared_ptr_copy_move
134135
test_class_sh_trampoline_basic
135136
test_class_sh_trampoline_self_life_support

tests/test_class_sh_property_stl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
namespace test_class_sh_property_stl {
99

1010
struct Field {
11-
Field(int wrapped_int) : wrapped_int{wrapped_int} {}
11+
explicit Field(int wrapped_int) : wrapped_int{wrapped_int} {}
1212
int wrapped_int = 100;
1313
};
1414

1515
struct FieldHolder {
16-
FieldHolder(const Field &fld) : fld{fld} {}
16+
explicit FieldHolder(const Field &fld) : fld{fld} {}
1717
Field fld = Field{200};
1818
};
1919

0 commit comments

Comments
 (0)