From 0a740ad90f467ccdf00cb674eb80310ddb115b50 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Wed, 16 Dec 2009 18:30:17 -0300 Subject: Adds support for varargs in AbstractMetaArgument, AbstractMetaType and VarargsTypeEntry. Reviewed by Hugo Parente --- typesystem.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'typesystem.h') 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: -- cgit v1.2.3