CPlusPlus: Transfer cv qualifiers from Function to FullySpecifiedType.

Reviewed-by: Roberto Raggi
This commit is contained in:
Christian Kamm
2010-04-19 09:40:38 +02:00
parent debe9cc4f7
commit 2252e4b8c9

View File

@@ -289,7 +289,12 @@ bool Function::matchType0(const Type *otherType, TypeMatcher *matcher) const
}
FullySpecifiedType Function::type() const
{ return FullySpecifiedType(const_cast<Function *>(this)); }
{
FullySpecifiedType ty(const_cast<Function *>(this));
ty.setConst(isConst());
ty.setVolatile(isVolatile());
return ty;
}
FullySpecifiedType Function::returnType() const
{ return _returnType; }