aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2010-04-20 16:40:58 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:01 -0300
commitb42f0be98cf4a4e679d4ec6c50447ae1ae817efe (patch)
tree580e49be140363001c9162a65d59fcee8fe1b9c7
parent62c659481f9a105ffa789b32040375db5cbc959c (diff)
Support 'void' argument.
Reviewer: Anderson Lizardo <anderson.lizardo@openbossa.org> Reviewer: Renato Filho <renato.filho@openbossa.org>
-rw-r--r--abstractmetabuilder.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp
index 6b2528bfc..d12cd9411 100644
--- a/abstractmetabuilder.cpp
+++ b/abstractmetabuilder.cpp
@@ -1624,6 +1624,14 @@ AbstractMetaFunction *AbstractMetaBuilder::traverseFunction(FunctionModelItem fu
}
ArgumentList arguments = functionItem->arguments();
+
+ if (arguments.size() == 1) {
+ ArgumentModelItem arg = arguments.at(0);
+ TypeInfo type = arg->type();
+ if (type.qualifiedName().first() == "void" && type.indirections() == 0)
+ arguments.removeFirst();
+ }
+
AbstractMetaArgumentList metaArguments;
int firstDefaultArgument = 0;