diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-16 18:30:17 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-16 18:42:37 -0300 |
commit | 0a740ad90f467ccdf00cb674eb80310ddb115b50 (patch) | |
tree | 39f8d5d241311d3ab1f07ec9241fa1541bc7b9d7 /abstractmetabuilder.cpp | |
parent | f2fd366c90dd64a37f48e5ea554b8aebf00b6de5 (diff) |
Adds support for varargs in AbstractMetaArgument, AbstractMetaType and VarargsTypeEntry.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'abstractmetabuilder.cpp')
-rw-r--r-- | abstractmetabuilder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/abstractmetabuilder.cpp b/abstractmetabuilder.cpp index 6ce0232ec..bc78cdd31 100644 --- a/abstractmetabuilder.cpp +++ b/abstractmetabuilder.cpp @@ -1884,6 +1884,9 @@ void AbstractMetaBuilder::decideUsagePattern(AbstractMetaType *metaType) } else if (type->isVoid()) { metaType->setTypeUsagePattern(AbstractMetaType::NativePointerPattern); + } else if (type->isVarargs()) { + metaType->setTypeUsagePattern(AbstractMetaType::VarargsPattern); + } else if (type->isString() && metaType->indirections() == 0 && (metaType->isConstant() == metaType->isReference() |