diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-09 11:04:21 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-09 12:58:01 +0000 |
commit | 46ba821e2c41c12a16ee8eb6e82ee1e65c903cd3 (patch) | |
tree | 8cc50a71fe7462348afa8b35ce564d03c64a1609 /sources/shiboken6/ApiExtractor/abstractmetalang.h | |
parent | 0a1860ee76cb2600299d51439592c75ab20d0d6f (diff) |
shiboken6: Remove AbstractMetaAttributes::Documentation
It does not really belong there; also it was shadowed
by AbstractMetaVariable::Documentation.
Add it to the inheriting classes instead.
Change-Id: Id50344f653b52fa8501162e600879bcc71cd5824
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/abstractmetalang.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/abstractmetalang.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h index d41c0f976..51e63a33d 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h @@ -32,6 +32,7 @@ #include "abstractmetalang_typedefs.h" #include "abstractmetaattributes.h" #include "enclosingclassmixin.h" +#include "documentation.h" #include "sourcelocation.h" #include "typesystem_enums.h" #include "typesystem_typedefs.h" @@ -188,6 +189,9 @@ public: */ QString name() const; + const Documentation &documentation() const { return m_doc; } + void setDocumentation(const Documentation& doc) { m_doc = doc; } + QString baseClassName() const { return m_baseClasses.isEmpty() ? QString() : m_baseClasses.constFirst()->name(); @@ -364,6 +368,8 @@ private: uint m_isTypeDef : 1; uint m_hasToStringCapability : 1; + Documentation m_doc; + const AbstractMetaClass *m_enclosingClass = nullptr; AbstractMetaClassList m_baseClasses; // Real base classes after setting up inheritance AbstractMetaTypeList m_baseTemplateInstantiations; |