lib/ClangImporter/ImportDecl.cpp
/// \brief Create a decl with error type and an "unavailable" attribute on it
/// with the specified message.
\brief Create a decl with error type and an "unavailable" attribute on it
with the specified message.
\ brief Create a decl with error type and an " unavailable " attribute on it with the specified message .
void ClangImporter::Implementation::
markUnavailable(ValueDecl *decl, StringRef unavailabilityMsgRef) {
  unavailabilityMsgRef = SwiftContext.AllocateCopy(unavailabilityMsgRef);
  auto ua = AvailableAttr::createUnconditional(SwiftContext,
                                                  unavailabilityMsgRef);
  decl->getAttrs().add(ua);
}
void ClangImporter :: Implementation :: markUnavailable ( ValueDecl * decl , StringRef unavailabilityMsgRef ) { unavailabilityMsgRef = SwiftContext . AllocateCopy ( unavailabilityMsgRef ) ; auto ua = AvailableAttr :: createUnconditional ( SwiftContext , unavailabilityMsgRef ) ; decl -> getAttrs ( ) . add ( ua ) ; }
\brief Create a decl with error type and an "unavailable" attribute on it
with the specified message.
\ brief Create a decl with error type and an " unavailable " attribute on it with the specified message .