Add test_class_sh_property_non_owning to CMakeLists.txt (#4590)

* use C++17 syntax to get rid of recursive template instantiations for concatenating type signatures (#4587)

* Apply descr.h `src_loc` change (smart_holder PR #4022) to code added with master PR #4587

* Add test_class_sh_property_non_owning to CMakeLists.txt (fixes oversight in PR #4586)

* Resolve clang-tidy errors.

* clang-tidy auto fix

---------

Co-authored-by: Konstantin Bespalov <kos5tya@yandex.ru>
This commit is contained in:
Ralf W. Grosse-Kunstleve 2023-03-24 00:07:39 -07:00 committed by GitHub
parent 13936bb258
commit 4f3a1a8231
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -130,6 +130,7 @@ set(PYBIND11_TEST_FILES
test_class_sh_mi_thunks
test_class_sh_module_local.py
test_class_sh_property
test_class_sh_property_non_owning
test_class_sh_shared_ptr_copy_move
test_class_sh_trampoline_basic
test_class_sh_trampoline_self_life_support

View File

@ -27,10 +27,10 @@ private:
std::vector<DataField> vec;
public:
DataFieldsHolder(std::size_t vec_size) {
explicit DataFieldsHolder(std::size_t vec_size) {
for (std::size_t i = 0; i < vec_size; i++) {
int i11 = static_cast<int>(i) * 11;
vec.push_back(DataField(13 + i11, 14 + i11, 15 + i11));
vec.emplace_back(13 + i11, 14 + i11, 15 + i11);
}
}