Home
last modified time | relevance | path

Searched refs:FromD (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTImporter.h377 llvm::Expected<Decl *> Import(Decl *FromD);
378 llvm::Expected<const Decl *> Import(const Decl *FromD) { in Import() argument
379 return Import(const_cast<Decl *>(FromD)); in Import()
385 Decl *GetAlreadyImportedOrNull(const Decl *FromD) const;
399 auto *FromD = dyn_cast<DeclT>(FromI->second); in getImportedFromDecl() local
400 if (!FromD) in getImportedFromDecl()
402 return FromD; in getImportedFromDecl()
574 void RegisterImportedDecl(Decl *FromD, Decl *ToD);
592 llvm::Optional<ImportError> getImportDeclErrorIfAny(Decl *FromD) const;
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExternalASTMerger.cpp126 llvm::Expected<Decl *> ImportImpl(Decl *FromD) override { in ImportImpl() argument
128 return ASTImporter::ImportImpl(FromD); in ImportImpl()
164 Decl *Persistent = SourceMerger->FindOriginalDecl(FromD); in ImportImpl()
167 return ASTImporter::ImportImpl(FromD); in ImportImpl()
183 MapImported(FromD, D); in ImportImpl()
499 for (NamedDecl *FromD : Result) { in FindExternalVisibleDeclsByName()
500 FilterFoundDecl(std::make_pair(FromD, &Forward)); in FindExternalVisibleDeclsByName()
H A DASTImporter.cpp222 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD, in GetImportedOrCreateDecl() argument
228 return GetImportedOrCreateSpecialDecl(ToD, OC, FromD, in GetImportedOrCreateDecl()
238 LLVM_NODISCARD bool GetImportedOrCreateDecl(ToDeclT *&ToD, FromDeclT *FromD, in GetImportedOrCreateDecl() argument
241 return GetImportedOrCreateSpecialDecl(ToD, OC, FromD, in GetImportedOrCreateDecl()
250 FromDeclT *FromD, Args &&... args) { in GetImportedOrCreateSpecialDecl() argument
251 if (Importer.getImportDeclErrorIfAny(FromD)) { in GetImportedOrCreateSpecialDecl()
255 ToD = cast_or_null<ToDeclT>(Importer.GetAlreadyImportedOrNull(FromD)); in GetImportedOrCreateSpecialDecl()
260 Importer.RegisterImportedDecl(FromD, ToD); in GetImportedOrCreateSpecialDecl()
261 InitializeImportedDecl(FromD, ToD); in GetImportedOrCreateSpecialDecl()
265 void InitializeImportedDecl(Decl *FromD, Decl *ToD) { in InitializeImportedDecl() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DLibASTImporter.rst50 ErrorOrDecl Import(Decl *FromD) {
52 FoundDeclsList = Look up all Decls in the "to" Ctx with the same name of FromD;
54 if (StructurallyEquivalentDecls(FoundDecl, FromD)) {
56 Mark FromD as imported;
66 Mark FromD as imported;