aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-27 14:11:40 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-28 09:32:11 +0000
commitf1194ffa7df1f7a58b77c3e0754d49cd55393433 (patch)
treed0ee13e007857a9af04f11c13747615fcc41b109
parent215b23b5452f7ace4190b284afc2bf14d9d2cdfa (diff)
shiboken: Remove unused code from the generators
Change-Id: I88c4148000acba2ba1e2013fe587e7f5fbe6c2ca Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp16
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder.h2
-rw-r--r--sources/shiboken2/ApiExtractor/abstractmetabuilder_p.h3
-rw-r--r--sources/shiboken2/ApiExtractor/apiextractor.cpp6
-rw-r--r--sources/shiboken2/ApiExtractor/apiextractor.h1
-rw-r--r--sources/shiboken2/generator/generator.cpp13
-rw-r--r--sources/shiboken2/generator/generator.h52
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp9
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.h3
-rw-r--r--sources/shiboken2/generator/shiboken2/shibokengenerator.cpp97
-rw-r--r--sources/shiboken2/generator/shiboken2/shibokengenerator.h27
11 files changed, 15 insertions, 214 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
index 1d8a349f1..493e37754 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
+++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp
@@ -159,11 +159,6 @@ AbstractMetaEnumList AbstractMetaBuilder::globalEnums() const
return d->m_globalEnums;
}
-QSet<QString> AbstractMetaBuilder::qtMetaTypeDeclaredTypeNames() const
-{
- return d->m_qmetatypeDeclaredTypenames;
-}
-
static QString msgNoFunctionForModification(const QString &signature,
const QString &originalSignature,
const QString &className,
@@ -1046,16 +1041,6 @@ AbstractMetaClass *AbstractMetaBuilderPrivate::traverseClass(const FileModelItem
ComplexTypeEntry* type = TypeDatabase::instance()->findComplexType(fullClassName);
AbstractMetaBuilder::RejectReason reason = AbstractMetaBuilder::NoReason;
- if (fullClassName == QLatin1String("QMetaTypeId")) {
- // QtScript: record which types have been declared
- int lpos = classItem->name().indexOf(QLatin1Char('<'));
- int rpos = classItem->name().lastIndexOf(QLatin1Char('>'));
- if ((lpos != -1) && (rpos != -1)) {
- QString declaredTypename = classItem->name().mid(lpos + 1, rpos - lpos - 1);
- m_qmetatypeDeclaredTypenames.insert(declaredTypename);
- }
- }
-
if (TypeDatabase::instance()->isClassRejected(fullClassName)) {
reason = AbstractMetaBuilder::GenerationDisabled;
} else if (!type) {
@@ -3307,7 +3292,6 @@ static void debugFormatSequence(QDebug &d, const char *key, const Container& c,
void AbstractMetaBuilder::formatDebug(QDebug &debug) const
{
debug << "m_globalHeader=" << d->m_globalHeader.absoluteFilePath();
- debugFormatSequence(debug, "qtMetaTypeDeclaredTypeNames", d->m_qmetatypeDeclaredTypenames);
debugFormatSequence(debug, "globalEnums", d->m_globalEnums, "\n");
debugFormatSequence(debug, "globalFunctions", d->m_globalFunctions, "\n");
if (const int scopeCount = d->m_scopes.size()) {
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h
index c8381d12b..a0ca71b94 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.h
+++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.h
@@ -61,8 +61,6 @@ public:
AbstractMetaClassList smartPointers() const;
AbstractMetaFunctionList globalFunctions() const;
AbstractMetaEnumList globalEnums() const;
- // QtScript
- QSet<QString> qtMetaTypeDeclaredTypeNames() const;
/**
* Sorts a list of classes topologically, if an AbstractMetaClass object
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder_p.h b/sources/shiboken2/ApiExtractor/abstractmetabuilder_p.h
index 6cbfd8d9d..59e3cfc94 100644
--- a/sources/shiboken2/ApiExtractor/abstractmetabuilder_p.h
+++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder_p.h
@@ -182,9 +182,6 @@ public:
QSet<AbstractMetaClass *> m_setupInheritanceDone;
- // QtScript
- QSet<QString> m_qmetatypeDeclaredTypenames;
-
QString m_logDirectory;
QFileInfo m_globalHeader;
};
diff --git a/sources/shiboken2/ApiExtractor/apiextractor.cpp b/sources/shiboken2/ApiExtractor/apiextractor.cpp
index 2dadda57a..171011cd4 100644
--- a/sources/shiboken2/ApiExtractor/apiextractor.cpp
+++ b/sources/shiboken2/ApiExtractor/apiextractor.cpp
@@ -159,12 +159,6 @@ ContainerTypeEntryList ApiExtractor::containerTypes() const
return TypeDatabase::instance()->containerTypes();
}
-QSet<QString> ApiExtractor::qtMetaTypeDeclaredTypeNames() const
-{
- Q_ASSERT(m_builder);
- return m_builder->qtMetaTypeDeclaredTypeNames();
-}
-
static const AbstractMetaEnum* findEnumOnClasses(AbstractMetaClassList metaClasses, const EnumTypeEntry* typeEntry)
{
const AbstractMetaEnum* result = 0;
diff --git a/sources/shiboken2/ApiExtractor/apiextractor.h b/sources/shiboken2/ApiExtractor/apiextractor.h
index af84223a6..674e5a742 100644
--- a/sources/shiboken2/ApiExtractor/apiextractor.h
+++ b/sources/shiboken2/ApiExtractor/apiextractor.h
@@ -86,7 +86,6 @@ public:
AbstractMetaClassList classesTopologicalSorted(const Dependencies &additionalDependencies = Dependencies()) const;
PrimitiveTypeEntryList primitiveTypes() const;
ContainerTypeEntryList containerTypes() const;
- QSet<QString> qtMetaTypeDeclaredTypeNames() const;
const AbstractMetaEnum* findAbstractMetaEnum(const EnumTypeEntry* typeEntry) const;
const AbstractMetaEnum* findAbstractMetaEnum(const TypeEntry* typeEntry) const;
diff --git a/sources/shiboken2/generator/generator.cpp b/sources/shiboken2/generator/generator.cpp
index ded504905..1e2f03932 100644
--- a/sources/shiboken2/generator/generator.cpp
+++ b/sources/shiboken2/generator/generator.cpp
@@ -46,7 +46,6 @@ struct Generator::GeneratorPrivate {
// License comment
QString licenseComment;
QString packageName;
- int numGenerated;
QStringList instantiatedContainersNames;
QStringList instantiatedSmartPointerNames;
QVector<const AbstractMetaType *> instantiatedContainers;
@@ -56,7 +55,6 @@ struct Generator::GeneratorPrivate {
Generator::Generator() : m_d(new GeneratorPrivate)
{
- m_d->numGenerated = 0;
}
Generator::~Generator()
@@ -249,11 +247,6 @@ const AbstractMetaEnum* Generator::findAbstractMetaEnum(const AbstractMetaType*
return m_d->apiextractor->findAbstractMetaEnum(metaType);
}
-QSet< QString > Generator::qtMetaTypeDeclaredTypeNames() const
-{
- return m_d->apiextractor->qtMetaTypeDeclaredTypeNames();
-}
-
QString Generator::licenseComment() const
{
return m_d->licenseComment;
@@ -285,11 +278,6 @@ void Generator::setOutputDirectory(const QString &outDir)
m_d->outDir = outDir;
}
-int Generator::numGenerated() const
-{
- return m_d->numGenerated;
-}
-
inline void touchFile(const QString &filePath)
{
QFile toucher(filePath);
@@ -337,7 +325,6 @@ bool Generator::generateFileForContext(GeneratorContext &context)
break;
}
- ++m_d->numGenerated;
return true;
}
diff --git a/sources/shiboken2/generator/generator.h b/sources/shiboken2/generator/generator.h
index e48f86f6f..010ed868c 100644
--- a/sources/shiboken2/generator/generator.h
+++ b/sources/shiboken2/generator/generator.h
@@ -143,37 +143,21 @@ public:
/// Optiosn used around the generator code
enum Option {
NoOption = 0x00000000,
- BoxedPrimitive = 0x00000001,
- ExcludeConst = 0x00000002,
- ExcludeReference = 0x00000004,
- UseNativeIds = 0x00000008,
-
- EnumAsInts = 0x00000010,
- SkipName = 0x00000020,
- NoCasts = 0x00000040,
- SkipReturnType = 0x00000080,
- OriginalName = 0x00000100,
- ShowStatic = 0x00000200,
- UnderscoreSpaces = 0x00000400,
- ForceEnumCast = 0x00000800,
- ArrayAsPointer = 0x00001000,
- VirtualCall = 0x00002000,
- SkipTemplateParameters = 0x00004000,
- SkipAttributes = 0x00008000,
- OriginalTypeDescription = 0x00010000,
- SkipRemovedArguments = 0x00020000,
- IncludeDefaultExpression = 0x00040000,
- NoReturnStatement = 0x00080000,
- NoBlockedSlot = 0x00100000,
-
- SuperCall = 0x00200000,
-
- GlobalRefJObject = 0x00100000,
-
- SkipDefaultValues = 0x00400000,
-
- WriteSelf = 0x00800000,
- ExcludeMethodConst = 0x01000000,
+ ExcludeConst = 0x00000001,
+ ExcludeReference = 0x00000002,
+
+ EnumAsInts = 0x00000004,
+ SkipName = 0x00000008,
+ SkipReturnType = 0x00000010,
+ OriginalName = 0x00000020,
+ VirtualCall = 0x00000040,
+ OriginalTypeDescription = 0x00000080,
+ SkipRemovedArguments = 0x00000100,
+
+ SkipDefaultValues = 0x00000200,
+
+ WriteSelf = 0x00000400,
+ ExcludeMethodConst = 0x00000800,
ForceValueType = ExcludeReference | ExcludeConst
};
@@ -241,9 +225,6 @@ public:
QString getFileNameBaseForSmartPointer(const AbstractMetaType *smartPointerType,
const AbstractMetaClass *smartPointerClass) const;
- /// Returns the number of generated items
- int numGenerated() const;
-
/// Returns the generator's name. Used for cosmetic purposes.
virtual const char* name() const = 0;
@@ -284,9 +265,6 @@ public:
void replaceTemplateVariables(QString &code, const AbstractMetaFunction *func);
- // QtScript
- QSet<QString> qtMetaTypeDeclaredTypeNames() const;
-
/**
* Returns the license comment to be prepended to each source file generated.
*/
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index badb6a4cd..568b5fd27 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -1446,15 +1446,6 @@ void CppGenerator::writeCustomConverterRegister(QTextStream& s, const CustomConv
}
}
-void CppGenerator::writeContainerConverterRegister(QTextStream& s, const AbstractMetaType* container, const QString& converterVar)
-{
- s << INDENT << "// Add user defined container conversion to type converter." << endl;
- QString typeName = fixedCppTypeName(container);
- QString toCpp = pythonToCppFunctionName(typeName, typeName);
- QString isConv = convertibleToCppFunctionName(typeName, typeName);
- writeAddPythonToCppConversion(s, converterVar, toCpp, isConv);
-}
-
void CppGenerator::writeContainerConverterFunctions(QTextStream& s, const AbstractMetaType* containerType)
{
writeCppToPythonFunction(s, containerType);
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.h b/sources/shiboken2/generator/shiboken2/cppgenerator.h
index 4dbd31828..1b59bcda7 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.h
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.h
@@ -64,14 +64,12 @@ private:
void writeConverterRegister(QTextStream &s, const AbstractMetaClass *metaClass,
GeneratorContext &classContext);
void writeCustomConverterRegister(QTextStream& s, const CustomConversion* customConversion, const QString& converterVar);
- void writeContainerConverterRegister(QTextStream& s, const AbstractMetaType* container, const QString& converterVar);
void writeContainerConverterFunctions(QTextStream& s, const AbstractMetaType* containerType);
void writeMethodWrapperPreamble(QTextStream &s, OverloadData &overloadData,
GeneratorContext &context);
void writeConstructorWrapper(QTextStream &s, const AbstractMetaFunctionList overloads, GeneratorContext &classContext);
- void writeDestructorWrapper(QTextStream& s, const AbstractMetaClass* metaClass);
void writeMethodWrapper(QTextStream &s, const AbstractMetaFunctionList overloads,
GeneratorContext &classContext);
void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData);
@@ -266,7 +264,6 @@ private:
GeneratorContext &context);
void writeRichCompareFunction(QTextStream &s, GeneratorContext &context);
- void writeToPythonFunction(QTextStream& s, const AbstractMetaClass* metaClass);
void writeEnumsInitialization(QTextStream& s, AbstractMetaEnumList& enums);
void writeEnumInitialization(QTextStream& s, const AbstractMetaEnum* metaEnum);
diff --git a/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp b/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp
index 315f10fcb..80096cbf2 100644
--- a/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/shibokengenerator.cpp
@@ -639,14 +639,6 @@ QString ShibokenGenerator::cpythonWrapperCPtr(const TypeEntry* type, QString arg
+ QLatin1String(", reinterpret_cast<SbkObject *>(") + argName + QLatin1String(")))");
}
-QString ShibokenGenerator::getFunctionReturnType(const AbstractMetaFunction* func, Options) const
-{
- if (func->ownerClass() && func->isConstructor())
- return func->ownerClass()->qualifiedCppName() + QLatin1Char('*');
-
- return translateTypeForWrapperMethod(func->type(), func->implementingClass());
-}
-
void ShibokenGenerator::writeToPythonConversion(QTextStream & s, const AbstractMetaType* type,
const AbstractMetaClass * /* context */,
const QString& argumentName)
@@ -876,17 +868,6 @@ static QString msgUnknownOperator(const AbstractMetaFunction* func)
static inline QString unknownOperator() { return QStringLiteral("__UNKNOWN_OPERATOR__"); }
-QString ShibokenGenerator::cpythonOperatorFunctionName(const AbstractMetaFunction* func)
-{
- if (!func->isOperatorOverload())
- return QString();
- const QString pythonOp = pythonOperatorFunctionName(func->originalName());
- if (pythonOp == unknownOperator())
- qCWarning(lcShiboken).noquote().nospace() << msgUnknownOperator(func);
- return QLatin1String("Sbk") + func->ownerClass()->name()
- + QLatin1Char('_') + pythonOp;
-}
-
QString ShibokenGenerator::fixedCppTypeName(const CustomConversion::TargetToNativeConversion* toNative)
{
if (toNative->sourceType())
@@ -1014,12 +995,6 @@ bool ShibokenGenerator::isPyInt(const AbstractMetaType* type)
return isPyInt(type->typeEntry());
}
-bool ShibokenGenerator::isPairContainer(const AbstractMetaType* type)
-{
- return type->isContainer()
- && static_cast<const ContainerTypeEntry *>(type->typeEntry())->type() == ContainerTypeEntry::PairContainer;
-}
-
bool ShibokenGenerator::isWrapperType(const TypeEntry* type)
{
if (type->isComplex())
@@ -1238,18 +1213,6 @@ QString ShibokenGenerator::guessCPythonCheckFunction(const QString& type, Abstra
return type + QLatin1String("_Check");
}
-QString ShibokenGenerator::guessCPythonIsConvertible(const QString& type)
-{
- if (type == QLatin1String("PyTypeObject"))
- return QLatin1String("PyType_Check");
-
- AbstractMetaType* metaType = buildAbstractMetaTypeFromString(type);
- if (metaType && !metaType->typeEntry()->isCustom())
- return cpythonIsConvertibleFunction(metaType);
-
- return type + QLatin1String("_Check");
-}
-
QString ShibokenGenerator::cpythonIsConvertibleFunction(const TypeEntry* type,
bool /* genericNumberType */,
bool /* checkExact */)
@@ -2096,16 +2059,6 @@ void ShibokenGenerator::replaceConverterTypeSystemVariable(TypeSystemConverterVa
code.replace(rep.first, rep.second);
}
-bool ShibokenGenerator::injectedCodeUsesCppSelf(const AbstractMetaFunction* func)
-{
- CodeSnipList snips = func->injectedCodeSnips(TypeSystem::CodeSnipPositionAny, TypeSystem::TargetLangCode);
- for (const CodeSnip &snip : qAsConst(snips)) {
- if (snip.code().contains(QLatin1String("%CPPSELF")))
- return true;
- }
- return false;
-}
-
bool ShibokenGenerator::injectedCodeUsesPySelf(const AbstractMetaFunction* func)
{
CodeSnipList snips = func->injectedCodeSnips(TypeSystem::CodeSnipPositionAny, TypeSystem::NativeCode);
@@ -2296,20 +2249,6 @@ QString ShibokenGenerator::getModuleHeaderFileName(const QString& moduleName) co
return result.toLower() + QLatin1String("_python.h");
}
-QString ShibokenGenerator::extendedIsConvertibleFunctionName(const TypeEntry* targetType) const
-{
- QString p = targetType->targetLangPackage();
- p.replace(QLatin1Char('.'), QLatin1Char('_'));
- return QStringLiteral("ExtendedIsConvertible_%1_%2").arg(p, targetType->name());
-}
-
-QString ShibokenGenerator::extendedToCppFunctionName(const TypeEntry* targetType) const
-{
- QString p = targetType->targetLangPackage();
- p.replace(QLatin1Char('.'), QLatin1Char('_'));
- return QStringLiteral("ExtendedToCpp_%1_%2").arg(p, targetType->name());
-}
-
bool ShibokenGenerator::isCopyable(const AbstractMetaClass *metaClass)
{
@@ -2549,25 +2488,6 @@ AbstractMetaFunctionList ShibokenGenerator::getFunctionOverloads(const AbstractM
return results;
}
-QPair< int, int > ShibokenGenerator::getMinMaxArguments(const AbstractMetaFunction* metaFunction)
-{
- AbstractMetaFunctionList overloads = getFunctionOverloads(metaFunction->ownerClass(), metaFunction->name());
-
- int minArgs = std::numeric_limits<int>::max();
- int maxArgs = 0;
- for (const AbstractMetaFunction* func : qAsConst(overloads)) {
- int numArgs = 0;
- const AbstractMetaArgumentList &arguments = func->arguments();
- for (const AbstractMetaArgument *arg : arguments) {
- if (!func->argumentRemoved(arg->argumentIndex() + 1))
- numArgs++;
- }
- maxArgs = std::max(maxArgs, numArgs);
- minArgs = std::min(minArgs, numArgs);
- }
- return qMakePair(minArgs, maxArgs);
-}
-
Generator::OptionDescriptions ShibokenGenerator::options() const
{
return OptionDescriptions()
@@ -2769,23 +2689,6 @@ bool ShibokenGenerator::pythonFunctionWrapperUsesListOfArguments(const OverloadD
|| overloadData.hasArgumentWithDefaultValue();
}
-Generator::Options ShibokenGenerator::getConverterOptions(const AbstractMetaType* metaType)
-{
- // exclude const on Objects
- Options flags;
- const TypeEntry* type = metaType->typeEntry();
- bool isCStr = isCString(metaType);
- if (metaType->indirections() && !isCStr) {
- flags = ExcludeConst;
- } else if (metaType->isContainer()
- || (type->isPrimitive() && !isCStr)
- // const refs become just the value, but pure refs must remain pure.
- || (type->isValue() && metaType->isConstant() && metaType->referenceType() == LValueReference)) {
- flags = ExcludeConst | ExcludeReference;
- }
- return flags;
-}
-
QString ShibokenGenerator::getDefaultValue(const AbstractMetaFunction* func, const AbstractMetaArgument* arg)
{
if (!arg->defaultValueExpression().isEmpty())
diff --git a/sources/shiboken2/generator/shiboken2/shibokengenerator.h b/sources/shiboken2/generator/shiboken2/shibokengenerator.h
index 3271d741d..cb1bdd11f 100644
--- a/sources/shiboken2/generator/shiboken2/shibokengenerator.h
+++ b/sources/shiboken2/generator/shiboken2/shibokengenerator.h
@@ -106,11 +106,6 @@ public:
*/
AbstractMetaFunctionList getFunctionOverloads(const AbstractMetaClass* scope, const QString& functionName);
/**
- * Returns the minimun and maximun number of arguments which this function and all overloads
- * can accept. Arguments removed by typesystem are considered as well.
- */
- QPair<int, int> getMinMaxArguments(const AbstractMetaFunction* metaFunction);
- /**
* Write a function argument in the C++ in the text stream \p s.
* This function just call \code s << argumentString(); \endcode
* \param s text stream used to write the output.
@@ -197,14 +192,6 @@ public:
}
/**
- * Verifies if any of the function's code injections of the "target"
- * type needs the type system variable "%CPPSELF".
- * \param func the function to check
- * \return true if the function's target code snippets use "%CPPSELF"
- */
- bool injectedCodeUsesCppSelf(const AbstractMetaFunction* func);
-
- /**
* Verifies if any of the function's code injections of the "native"
* type needs the type system variable "%PYSELF".
* \param func the function to check
@@ -310,8 +297,6 @@ public:
static QString pythonRichCompareOperatorId(QString cppOpFuncName);
static QString pythonRichCompareOperatorId(const AbstractMetaFunction* func);
- static QString cpythonOperatorFunctionName(const AbstractMetaFunction* func);
-
static QString fixedCppTypeName(const CustomConversion::TargetToNativeConversion* toNative);
static QString fixedCppTypeName(const AbstractMetaType* type);
static QString fixedCppTypeName(const TypeEntry* type, QString typeName = QString());
@@ -321,7 +306,6 @@ public:
static bool isNumber(const AbstractMetaType* type);
static bool isPyInt(const TypeEntry* type);
static bool isPyInt(const AbstractMetaType* type);
- static bool isPairContainer(const AbstractMetaType* type);
/**
* Returns true if the type passed has a Python wrapper for it.
@@ -391,7 +375,6 @@ public:
QString cpythonIsConvertibleFunction(const TypeEntry* type, bool genericNumberType = false, bool checkExact = false);
QString cpythonIsConvertibleFunction(const AbstractMetaType* metaType, bool genericNumberType = false);
QString cpythonIsConvertibleFunction(const AbstractMetaArgument* metaArg, bool genericNumberType = false);
- QString guessCPythonIsConvertible(const QString& type);
QString cpythonToCppConversionFunction(const AbstractMetaClass* metaClass);
QString cpythonToCppConversionFunction(const AbstractMetaType* type, const AbstractMetaClass* context = 0);
@@ -425,15 +408,11 @@ public:
/// Returns the special cast function name, the function used to proper cast class with multiple inheritance.
QString cpythonSpecialCastFunctionName(const AbstractMetaClass* metaClass);
- QString getFunctionReturnType(const AbstractMetaFunction* func, Options options = NoOption) const;
QString getFormatUnitString(const AbstractMetaFunction* func, bool incRef = false) const;
/// Returns the file name for the module global header. If no module name is provided the current will be used.
QString getModuleHeaderFileName(const QString& moduleName = QString()) const;
- QString extendedIsConvertibleFunctionName(const TypeEntry* targetType) const;
- QString extendedToCppFunctionName(const TypeEntry* targetType) const;
-
OptionDescriptions options() const override;
/// Returns true if the user enabled the so called "parent constructor heuristic".
@@ -479,12 +458,6 @@ public:
void writeMinimalConstructorExpression(QTextStream& s, const TypeEntry* type, const QString& defaultCtor = QString());
/**
- * Helper function to return the flags to be used by a meta type when
- * it needs to write some converter code.
- */
- static Options getConverterOptions(const AbstractMetaType* metaType);
-
- /**
* Helper function to find for argument default value
*/
static QString getDefaultValue(const AbstractMetaFunction* func, const AbstractMetaArgument* arg);