Commit 2252e4b8 authored by Christian Kamm's avatar Christian Kamm

CPlusPlus: Transfer cv qualifiers from Function to FullySpecifiedType.

Reviewed-by: Roberto Raggi
parent debe9cc4
......@@ -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; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment