Added Type::isForwardClassDeclaration().

This commit is contained in:
Roberto Raggi
2009-02-16 17:54:23 +01:00
parent ba78e075da
commit 01145fd552
2 changed files with 4 additions and 0 deletions

View File

@@ -102,6 +102,9 @@ bool Type::isClassType() const
bool Type::isEnumType() const bool Type::isEnumType() const
{ return asEnumType() != 0; } { return asEnumType() != 0; }
bool Type::isForwardClassDeclarationType() const
{ return asForwardClassDeclarationType() != 0; }
void Type::accept(TypeVisitor *visitor) void Type::accept(TypeVisitor *visitor)
{ {
if (visitor->preVisit(this)) if (visitor->preVisit(this))

View File

@@ -80,6 +80,7 @@ public:
bool isNamespaceType() const; bool isNamespaceType() const;
bool isClassType() const; bool isClassType() const;
bool isEnumType() const; bool isEnumType() const;
bool isForwardClassDeclarationType() const;
virtual const VoidType *asVoidType() const { return 0; } virtual const VoidType *asVoidType() const { return 0; }
virtual const IntegerType *asIntegerType() const { return 0; } virtual const IntegerType *asIntegerType() const { return 0; }