Home | History | Annotate | Download | only in AST

Lines Matching refs:Origin

74   // The Origins map fixes this problem by allowing the origin to be
97 /// - It updates the ExternalASTMerger's origin map as needed whenever a
196 /// Whenever a DeclContext is imported, ensure that ExternalASTSource's origin
216 << " forced origin (DeclContext*)"
225 << " maybe recording origin (DeclContext*)" << (void*)FromDC
261 llvm_unreachable("We should have an importer for this origin!");
283 ExternalASTMerger::DCOrigin Origin = Origins[DC];
284 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST);
285 Callback(Importer, Importer.GetReverse(), Origin.DC);
370 DCOrigin Origin) {
371 LazyASTImporter &Importer = LazyImporterForOrigin(*this, *Origin.AST);
374 LookupSameContext(Origin.AST->getTranslationUnitDecl(), ToDC, Reverse);
375 const bool DoRecord = !FoundFromDC || !IsSameDC(FoundFromDC.get(), Origin.DC);
377 RecordOriginImpl(ToDC, Origin, Importer);
381 << " to record origin (DeclContext*)" << (void*)Origin.DC
382 << ", (ASTContext*)" << (void*)&Origin.AST
387 DCOrigin Origin) {
388 RecordOriginImpl(ToDC, Origin, ImporterForOrigin(*Origin.AST));
391 void ExternalASTMerger::RecordOriginImpl(const DeclContext *ToDC, DCOrigin Origin,
393 Origins[ToDC] = Origin;
394 Importer.ASTImporter::MapImported(cast<Decl>(Origin.DC), const_cast<Decl*>(cast<Decl>(ToDC)));
439 std::pair<const DeclContext *, DCOrigin> Origin = *OI;
442 if (&S.getASTContext() == Origin.second.AST) {