path: root/cppgenerator.h
diff options
authorMarcelo Lira <>2010-06-17 15:42:09 -0300
committerMarcelo Lira <>2010-06-17 17:44:56 -0300
commit24edb80bfdcb2869861533eefe4016d2e04f65db (patch)
treee5238b1ae87a1da0d0bd7c0cac038abf0f4c63ac /cppgenerator.h
parent8681b1cc239def38edbf53d4bf77e3e6f302f344 (diff)
Adds support for named arguments in function calls.
Only C++ arguments with default values will be turned into Python named arguments.
Diffstat (limited to 'cppgenerator.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/cppgenerator.h b/cppgenerator.h
index 2f45fc93..b5970342 100644
--- a/cppgenerator.h
+++ b/cppgenerator.h
@@ -53,6 +53,7 @@ private:
void writeMinimalConstructorCallArguments(QTextStream& s, const AbstractMetaType* type);
void writeMethodWrapper(QTextStream &s, const AbstractMetaFunctionList overloads);
void writeArgumentsInitializer(QTextStream& s, OverloadData& overloadData);
+ void writeNamedArgumentsCheck(QTextStream& s, OverloadData& overloadData);
void writeCppSelfDefinition(QTextStream& s, const AbstractMetaFunction* func);
void writeErrorSection(QTextStream& s, OverloadData& overloadData);
@@ -120,6 +121,7 @@ private:
/// Writes the call to a single function usually from a collection of overloads.
void writeSingleFunctionCall(QTextStream& s, const OverloadData& overloadData, const AbstractMetaFunction* func = 0);
+ void writeNamedArgumentResolution(QTextStream& s, const AbstractMetaFunction* func, bool usePyArgs);
/// Returns a string containing the name of an argument for the given function and argument index.
QString argumentNameFromIndex(const AbstractMetaFunction* func, int argIndex, const AbstractMetaClass** wrappedClass);