aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'ApiExtractor/typesystem.h')
-rw-r--r--ApiExtractor/typesystem.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/ApiExtractor/typesystem.h b/ApiExtractor/typesystem.h
index 480ca95..cc51250 100644
--- a/ApiExtractor/typesystem.h
+++ b/ApiExtractor/typesystem.h
@@ -35,6 +35,7 @@
#include <QtCore/QHash>
#include <QtCore/qobjectdefs.h>
+#include <QtCore/QRegularExpression>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QMap>
@@ -48,6 +49,7 @@ class Indentor;
class AbstractMetaType;
QT_BEGIN_NAMESPACE
+class QDebug;
class QTextStream;
QT_END_NAMESPACE
@@ -1893,12 +1895,23 @@ private:
struct TypeRejection
{
- QString class_name;
- QString function_name;
- QString field_name;
- QString enum_name;
+ enum MatchType
+ {
+ ExcludeClass, // Match className only
+ Function, // Match className and function name
+ Field, // Match className and field name
+ Enum // Match className and enum name
+ };
+
+ QRegularExpression className;
+ QRegularExpression pattern;
+ MatchType matchType;
};
+#ifndef QT_NO_DEBUG_STREAM
+QDebug operator<<(QDebug d, const TypeRejection &r);
+#endif
+
QString fixCppTypeName(const QString &name);
class CustomConversion