lib/Sema/SemaDeclAttr.cpp
static bool isValidSwiftErrorResultType(QualType Ty) {
  if (const auto *PtrType = Ty->getAs<PointerType>()) {
    Ty = PtrType->getPointeeType();
  } else if (const auto *RefType = Ty->getAs<ReferenceType>()) {
    Ty = RefType->getPointeeType();
  } else {
    return Ty->isDependentType();
  }
  if (!Ty.getQualifiers().empty())
    return false;
  return isValidSwiftContextType(Ty);
}
/// Pointers and references to pointers in the default address space.
Pointers and references to pointers in the default address space.
Pointers and references to pointers in the default address space .
static bool isValidSwiftErrorResultType(QualType Ty) {
  if (const auto *PtrType = Ty->getAs<PointerType>()) {
    Ty = PtrType->getPointeeType();
  } else if (const auto *RefType = Ty->getAs<ReferenceType>()) {
    Ty = RefType->getPointeeType();
  } else {
    return Ty->isDependentType();
  }
  if (!Ty.getQualifiers().empty())
    return false;
  return isValidSwiftContextType(Ty);
}
static bool isValidSwiftErrorResultType ( QualType Ty ) { if ( const auto * PtrType = Ty -> getAs < PointerType > ( ) ) { Ty = PtrType -> getPointeeType ( ) ; } else if ( const auto * RefType = Ty -> getAs < ReferenceType > ( ) ) { Ty = RefType -> getPointeeType ( ) ; } else { return Ty -> isDependentType ( ) ; } if ( ! Ty . getQualifiers ( ) . empty ( ) ) return false ; return isValidSwiftContextType ( Ty ) ; }
Pointers and references to pointers in the default address space.
Pointers and references to pointers in the default address space .