Home
last modified time | relevance | path

Searched refs:FromDC (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang/lib/AST/
DExternalASTMerger.cpp210 Source<DeclContext *> FromDC( in Imported() local
212 if (FromOrigins.count(FromDC) && in Imported()
213 Parent.HasImporterForOrigin(*FromOrigins.at(FromDC).AST)) { in Imported()
217 << (void*)FromOrigins.at(FromDC).DC in Imported()
219 << (void*)FromOrigins.at(FromDC).AST in Imported()
221 Parent.ForceRecordOrigin(ToDC, FromOrigins.at(FromDC)); in Imported()
225 << " maybe recording origin (DeclContext*)" << (void*)FromDC in Imported()
228 Parent.MaybeRecordOrigin(ToDC, {FromDC, &getFromContext()}); in Imported()
DASTImporter.cpp304 DeclContext *FromDC = FromD->getDeclContext(); in addDeclToContexts() local
310 if (FromDC->containsDeclAndLoad(FromD)) { in addDeclToContexts()
325 FromDC->lookup(FromNamed->getDeclName()); in addDeclToContexts()
397 Error ImportDeclContext(DeclContext *FromDC, bool ForceImport = false);
1724 ASTNodeImporter::ImportDeclContext(DeclContext *FromDC, bool ForceImport) { in ImportDeclContext() argument
1726 auto ToDCOrErr = Importer.ImportContext(FromDC); in ImportDeclContext()
1739 bool AccumulateChildErrors = isa<TagDecl>(FromDC); in ImportDeclContext()
1742 for (auto *From : FromDC->decls()) { in ImportDeclContext()
1819 const auto *FromRD = dyn_cast<RecordDecl>(FromDC); in ImportDeclContext()
1823 auto ToDCOrErr = Importer.ImportContext(FromDC); in ImportDeclContext()
[all …]
/external/clang/include/clang/AST/
DASTImporter.h135 DeclContext *ImportContext(DeclContext *FromDC);
/external/llvm-project/clang/include/clang/AST/
DASTImporter.h416 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC);
/external/clang/lib/AST/
DASTImporter.cpp89 void ImportDeclContext(DeclContext *FromDC, bool ForceImport = false);
2089 void ASTNodeImporter::ImportDeclContext(DeclContext *FromDC, bool ForceImport) { in ImportDeclContext() argument
2091 Importer.ImportContext(FromDC); in ImportDeclContext()
2095 for (auto *From : FromDC->decls()) in ImportDeclContext()
6144 DeclContext *ASTImporter::ImportContext(DeclContext *FromDC) { in ImportContext() argument
6145 if (!FromDC) in ImportContext()
6146 return FromDC; in ImportContext()
6148 DeclContext *ToDC = cast_or_null<DeclContext>(Import(cast<Decl>(FromDC))); in ImportContext()
6155 RecordDecl *FromRecord = cast<RecordDecl>(FromDC); in ImportContext()
6165 EnumDecl *FromEnum = cast<EnumDecl>(FromDC); in ImportContext()
[all …]
/external/clang/lib/Sema/
DSemaAccess.cpp265 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local
267 if (FromDC == ToDC) return true; in MightInstantiateTo()
268 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()
/external/llvm-project/clang/lib/Sema/
DSemaAccess.cpp264 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local
266 if (FromDC == ToDC) return true; in MightInstantiateTo()
267 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()