De-inline Enum and Object destructors
The classes had inline virtual d-tors, which means that they will
produce duplicated vtables (see QTBUG-45582).
This patch de-inlines the destructors (and c-tors as drive-by).
It required to create two more .mustache templates for the cpp
files and add them to the relevant Java and CMake code.
Pick-to: 6.11
Change-Id: I87c085be3d31de376fd621f5449dc6482cd88bec
Reviewed-by: Rym Bouabid <rym.bouabid@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | 5db1602d3f83710e3f198fec8e49b07faf6cecb8 |
| parent | 8f2113ee5c1aa62cc38fb2aaf5a97731c3696470 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Thu, 11 Dec 2025 17:12:59 +0100 |
- M src/openapi/Qt6OpenApiToolsGeneratorMacros.cmake
- M src/tools/qtopenapi-generator/CMakeLists.txt
- M src/tools/qtopenapi-generator/src/main/java/org/qtproject/qt/codegen/CppQt6ClientGenerator.java
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/CMakeLists.txt.mustache
- A src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/enum-body.mustache
- R095 src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/enum.mustache
- A src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/object-body.mustache
- R095 src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/object.mustache