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 /typesystem.h | |
parent | f2fd366c90dd64a37f48e5ea554b8aebf00b6de5 (diff) |
Adds support for varargs in AbstractMetaArgument, AbstractMetaType and VarargsTypeEntry.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'typesystem.h')
-rw-r--r-- | typesystem.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/typesystem.h b/typesystem.h index 28a3cb85f..21c770889 100644 --- a/typesystem.h +++ b/typesystem.h @@ -581,6 +581,7 @@ public: enum Type { PrimitiveType, VoidType, + VarargsType, FlagsType, EnumType, TemplateArgumentType, @@ -681,6 +682,10 @@ public: { return m_type == VoidType; } + bool isVarargs() const + { + return m_type == VarargsType; + } bool isThread() const { return m_type == ThreadType; @@ -924,6 +929,12 @@ public: VoidTypeEntry() : TypeEntry("void", VoidType) { } }; +class APIEXTRACTOR_API VarargsTypeEntry : public TypeEntry +{ +public: + VarargsTypeEntry() : TypeEntry("...", VarargsType) { } +}; + class APIEXTRACTOR_API TemplateArgumentEntry : public TypeEntry { public: |