Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExternalASTMerger.cpp207 Source<DeclContext *> FromDC( in Imported() local
209 if (FromOrigins.count(FromDC) && in Imported()
210 Parent.HasImporterForOrigin(*FromOrigins.at(FromDC).AST)) { in Imported()
214 << (void*)FromOrigins.at(FromDC).DC in Imported()
216 << (void*)FromOrigins.at(FromDC).AST in Imported()
218 Parent.ForceRecordOrigin(ToDC, FromOrigins.at(FromDC)); in Imported()
222 << " maybe recording origin (DeclContext*)" << (void*)FromDC in Imported()
225 Parent.MaybeRecordOrigin(ToDC, {FromDC, &getFromContext()}); in Imported()
H A DASTImporter.cpp143 const DeclContext *const FromDC; member in clang::ChildErrorHandlingStrategy
153 : FromDC(FromDC), IgnoreChildErrors(!isa<TagDecl>(FromDC)) {} in ChildErrorHandlingStrategy()
155 : FromDC(dyn_cast<DeclContext>(FromD)), in ChildErrorHandlingStrategy()
172 if (!IgnoreChildErrors || !FromDC) in ignoreChildErrorOnParent()
174 return FromDC->containsDecl(FromChildD); in ignoreChildErrorOnParent()
325 if (FromDC->containsDeclAndLoad(FromD)) { in addDeclToContexts()
1994 for (auto *From : FromDC->decls()) { in ImportDeclContext()
2071 for (auto *From : FromDC->decls()) { in ImportDeclContext()
9473 if (!FromDC) in ImportContext()
9474 return FromDC; in ImportContext()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DASTImporter.h386 llvm::Expected<DeclContext *> ImportContext(DeclContext *FromDC);
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaAccess.cpp288 const DeclContext *FromDC = From->getDeclContext()->getPrimaryContext(); in MightInstantiateTo() local
290 if (FromDC == ToDC) return true; in MightInstantiateTo()
291 if (FromDC->isFileContext() || ToDC->isFileContext()) return false; in MightInstantiateTo()