diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-21 10:51:08 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-03-22 15:27:19 +0100 |
| commit | 7c33226f81760a1572a4a0bfe6fd5835045ddca2 (patch) | |
| tree | 743bc7e75c893162b29e4b992e465c03b5f8244b /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | 5bea8c440e5d64106102ad5a202220c016bb3964 (diff) | |
shiboken6: Split CppGenerator::generateClass()
Split out the smart pointer part from CppGenerator::generateClass()
into a separate CppGenerator::generateSmartPointerClass()
along with several small helpers.
This increases the clarity of the code and makes it easier
to implement similar classes like std::optional or std::unique_ptr.
Task-number: PYSIDE-454
Change-Id: I27ab16e2a9cef644e18e129eb18052df1b7a990f
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index 5fe9fb9c7..235f03ab9 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -685,6 +685,18 @@ QString msgCannotFindSmartPointer(const QString &instantiationType, return result; } +QString msgCannotFindSmartPointerGetter(const SmartPointerTypeEntry *te) +{ + return u"Getter \""_qs + te->getter() + u"()\" of smart pointer \""_qs + + te->name() + u"\" not found."_qs; +} + +QString msgCannotFindSmartPointerRefCount(const SmartPointerTypeEntry *te) +{ + return u"Ref count method \""_qs + te->refCountMethodName() + + u"()\" of smart pointer \""_qs + te->name() + u"\" not found."_qs; +} + QString msgMethodNotFound(const AbstractMetaClass *klass, const QString &name) { return u"Method \""_qs + name + u"\" not found in class "_qs |
