aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken2/ApiExtractor/typesystem.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h
index f089bb6e0..2e4578a1d 100644
--- a/sources/shiboken2/ApiExtractor/typesystem.h
+++ b/sources/shiboken2/ApiExtractor/typesystem.h
@@ -1531,10 +1531,28 @@ public:
TypeEntry *clone() const override;
+ const NamespaceTypeEntry *extends() const { return m_extends; }
+ void setExtends(const NamespaceTypeEntry *e) { m_extends = e; }
+
+ const QRegularExpression &filePattern() const { return m_filePattern; } // restrict files
+ void setFilePattern(const QRegularExpression &r);
+
+ bool hasPattern() const { return m_hasPattern; }
+
+ bool matchesFile(const QString &needle) const;
+
+#ifndef QT_NO_DEBUG_STREAM
+ void formatDebug(QDebug &d) const override;
+#endif
+
protected:
NamespaceTypeEntry(const NamespaceTypeEntry &);
-};
+private:
+ QRegularExpression m_filePattern;
+ const NamespaceTypeEntry *m_extends = nullptr;
+ bool m_hasPattern = false;
+};
class ValueTypeEntry : public ComplexTypeEntry
{