return 0;
}
-bool Type::isReferenceType() const {
+const ReferenceType *Type::isReferenceType() const {
// If this is directly a reference type, return it.
if (const ReferenceType *RTy = dyn_cast<ReferenceType>(this))
return RTy;
class Expr;
class SourceLocation;
class PointerType;
+ class ReferenceType;
class VectorType;
/// QualType - For efficiency, we don't store CVR-qualified types as nodes on
/// Derived types (C99 6.2.5p20). isFunctionType() is also a derived type.
bool isDerivedType() const;
const PointerType *isPointerType() const;
- bool isReferenceType() const;
+ const ReferenceType *isReferenceType() const;
bool isArrayType() const;
bool isStructureType() const;
bool isUnionType() const;