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 .
ValueDecl *ClangImporter::Implementation::
createUnavailableDecl(Identifier name, DeclContext *dc, Type type,
                      StringRef UnavailableMessage, bool isStatic,
                      ClangNode ClangN) {
  auto var = createDeclWithClangNode<VarDecl>(ClangN,
                                              isStatic,  false,
                                              SourceLoc(), name, type, dc);
  markUnavailable(var, UnavailableMessage);
  return var;
}
ValueDecl * ClangImporter :: Implementation :: createUnavailableDecl ( Identifier name , DeclContext * dc , Type type , StringRef UnavailableMessage , bool isStatic , ClangNode ClangN ) { auto var = createDeclWithClangNode < VarDecl > ( ClangN , isStatic , false , SourceLoc ( ) , name , type , dc ) ; markUnavailable ( var , UnavailableMessage ) ; return var ; }
\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 .
// Create a new VarDecl with dummy type. /*IsLet*/