diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-04 09:42:29 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-14 12:19:06 +0200 |
commit | 7b834c7e43e9ffdf42d1cc1f1fbec03999ba7962 (patch) | |
tree | e544f5531e711d94277096fffb603e2fb3c78234 /sources/shiboken6/tests/samplebinding | |
parent | a756860a6a0a86e72304ed24fb238f66e520a783 (diff) |
shiboken6: Handle value types with deleted default constructors
Do not set flag AbstractMetaClass::HasRejectedConstructor for those
classes since it has a slightly different meaning (rejected due to
unknown type).
AbstractMetaClass::determineValueTypeWithCopyConstructorOnly() will
then correctly detect them.
Manifests in QCanBusDeviceInfo.
Change-Id: I57637d57ebdaba0a022b6012c08f75c858d9ed36
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/samplebinding')
-rw-r--r-- | sources/shiboken6/tests/samplebinding/CMakeLists.txt | 1 | ||||
-rw-r--r-- | sources/shiboken6/tests/samplebinding/typesystem_sample.xml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/samplebinding/CMakeLists.txt b/sources/shiboken6/tests/samplebinding/CMakeLists.txt index 7576f6734..330863086 100644 --- a/sources/shiboken6/tests/samplebinding/CMakeLists.txt +++ b/sources/shiboken6/tests/samplebinding/CMakeLists.txt @@ -27,6 +27,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/sample/customoverloadsequence_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/cvlistuser_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/cvvaluetype_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/sbkdate_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/sample/deleteddefaultctor_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/derived_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/derivedusingct_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/sample/derived_someinnerclass_wrapper.cpp diff --git a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml index 4317abb37..9997df69e 100644 --- a/sources/shiboken6/tests/samplebinding/typesystem_sample.xml +++ b/sources/shiboken6/tests/samplebinding/typesystem_sample.xml @@ -2226,6 +2226,7 @@ <object-type name="PrivateCtor" /> <object-type name="PrivateDtor" /> + <value-type name="DeletedDefaultCtor"/> <object-type name="Base1"/> <object-type name="Base2"/> |