diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-01 13:38:27 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-12-05 13:13:24 +0100 |
commit | 836f385520c5c1233bc90dd67d64bb37ee109167 (patch) | |
tree | dfdc183ad832742a2a96f50c4d94591e8a9b16a5 /sources/shiboken6/ApiExtractor/abstractmetalang.h | |
parent | e3d3bf42619a20e1845a865b992a60883193c001 (diff) |
shiboken6: Make AbstractMetaClass::fixFunctions/addFunction*() static
Preparing for the introduction of smart pointers for
AbstractMetaClass.
Change-Id: I74b1a4fc52319099dae39040179ffb197bac27a7
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetalang.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetalang.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h index c28b39a71..ce0127580 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h @@ -67,7 +67,7 @@ public: const AbstractMetaFunctionCList &functions() const; void setFunctions(const AbstractMetaFunctionCList &functions); - void addFunction(const AbstractMetaFunctionCPtr &function); + static void addFunction(AbstractMetaClass *klass, const AbstractMetaFunctionCPtr &function); bool hasFunction(const QString &str) const; AbstractMetaFunctionCPtr findFunction(QStringView functionName) const; AbstractMetaFunctionCList findFunctions(QStringView functionName) const; @@ -81,8 +81,8 @@ public: bool hasCopyConstructor() const; bool hasPrivateCopyConstructor() const; - void addDefaultConstructor(); - void addDefaultCopyConstructor(); + static void addDefaultConstructor(AbstractMetaClass *klass); + static void addDefaultCopyConstructor(AbstractMetaClass *klass); bool hasNonPrivateConstructor() const; void setHasNonPrivateConstructor(bool value); @@ -113,7 +113,7 @@ public: bool isImplicitlyCopyConstructible() const; bool canAddDefaultCopyConstructor() const; - void addSynthesizedComparisonOperators(); + static void addSynthesizedComparisonOperators(AbstractMetaClass *c); bool generateExceptionHandling() const; @@ -330,7 +330,7 @@ public: void setSourceLocation(const SourceLocation &sourceLocation); // For AbstractMetaBuilder - void fixFunctions(); + static void fixFunctions(AbstractMetaClass *klass); bool needsInheritanceSetup() const; void setInheritanceDone(bool b); bool inheritanceDone() const; |