summaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index 71964b4..60ff21d 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -384,6 +384,20 @@ bool Generator::isPointer(const AbstractMetaType* type)
|| type->isValuePointer();
}
+bool Generator::isCString(const AbstractMetaType* type)
+{
+ return type->isNativePointer()
+ && type->indirections() == 1
+ && type->name() == "char";
+}
+
+bool Generator::isVoidPointer(const AbstractMetaType* type)
+{
+ return type->isNativePointer()
+ && type->indirections() == 1
+ && type->name() == "void";
+}
+
QString Generator::minimalConstructor(const AbstractMetaType* type) const
{
if (!type || (type->isReference() && Generator::isObjectType(type)))