aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/smartbinding/std_optional_test.py
Commit message (Collapse)AuthorAgeFilesLines
* shiboken6: Add a test for automatic conversion from T to std::optional<T>Friedemann Kleint2025-06-061-0/+9
| | | | | | Task-number: PYSIDE-3107 Change-Id: I63f182eebba887780bfa882aebc653c60e07d9ad Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* shiboken6: Use new API for the wrapper multimap in the generated codeFriedemann Kleint2025-03-191-2/+0
| | | | | | | | This allows for removing a lot of complicated checking code. Task-number: PYSIDE-2854 Change-Id: Ib2334437cf23862b7ca527b667525ef750ea8801 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Fix smart pointer testing on macOSFriedemann Kleint2024-11-151-0/+2
| | | | | | | | | | | | | | | | | | The clang parser on macOS was not seeing namespace std for std::optional. Add the system include <optional> to fix this. This however unveils a problem with "T &std::optional::value()", which returns a reference to the contained value instead of the value as done by the synthesized function. The reference is handled as a pointer conversion for object types and the std::optional itself instead of the value is returned since it is found in the instance map at the address (unhandled in findColocatedChild()). Skip the test for the time being. Pick-to: 6.8 Task-number: PYSIDE-2854 Change-Id: Ifcb65643ff0a39c060fb329933a1e6949ed8777c Reviewed-by: Christian Tismer <tismer@stackless.com>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* shiboken tests/smartbinding: Fix flake8 warningsFriedemann Kleint2024-03-121-1/+0
| | | | | | Pick-to: 6.6 6.5 Change-Id: Iecc01ad457053f5ce59512ea66cb0347f54334c7 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Use SPDX license identifiersLucie Gérard2022-05-271-29/+2
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: I065150015bdb84a3096b5b39c061cf0a20ab637d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Add test for std::optionalFriedemann Kleint2022-05-131-0/+97
Task-number: PYSIDE-454 Change-Id: Ife97f7fccadf7a4206795ed91612c6cd9bf9e6af Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>