lib/Sema/SemaDeclAttr.cpp
static bool isValidSwiftIndirectResultType(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();
  }
  return Ty.getAddressSpace() == LangAS::Default;
}
/// Pointers and references in the default address space.
Pointers and references in the default address space.
Pointers and references in the default address space .
static bool isValidSwiftIndirectResultType(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();
  }
  return Ty.getAddressSpace() == LangAS::Default;
}
static bool isValidSwiftIndirectResultType ( 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 ( ) ; } return Ty . getAddressSpace ( ) == LangAS :: Default ; }
Pointers and references in the default address space.
Pointers and references in the default address space .