aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.cpp
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-06-09 11:11:37 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:04 -0300
commit3649c91f1bdad3ce7db3ff895ae40edf06fc232e (patch)
treed4f41966ff8e1ddc6e267b3c4ff3da75364b12e0 /abstractmetabuilder.cpp
parent96316113bcd6e60bc602def066cb03ec5ece436b (diff)
Enable warning for arguments without name.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>, Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r--abstractmetabuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index d40e07cb..5c326abb 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1633,6 +1633,10 @@ AbstractMetaFunction* AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
}
AbstractMetaArgument* metaArgument = createMetaArgument();
metaArgument->setType(metaType);
+
+ if (arg->name().isEmpty() && metaFunction->argumentName(i).isEmpty())
+ ReportHandler::warning(QString("Argument %1 on function '%2::%3' declared without name.").arg(i).arg(className).arg(functionItem->name()));
+
metaArgument->setName(arg->name());
metaArgument->setArgumentIndex(i);
metaArguments << metaArgument;