Home
last modified time | relevance | path

Searched refs:LexicalDC (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTImporter.cpp379 NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC,
1876 NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC, in ImportDeclParts() argument
1907 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in ImportDeclParts()
2461 DeclContext *DC, *LexicalDC; in VisitEmptyDecl() local
2462 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitEmptyDecl()
2474 ToD->setLexicalDeclContext(LexicalDC); in VisitEmptyDecl()
2475 LexicalDC->addDeclInternal(ToD); in VisitEmptyDecl()
2489 DeclContext *DC, *LexicalDC; in VisitBindingDecl() local
2493 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToND, Loc)) in VisitBindingDecl()
2549 DeclContext *LexicalDC = DC; in VisitStaticAssertDecl() local
[all …]
H A DDeclBase.cpp369 getMultipleDC()->LexicalDC = DC; in setLexicalDeclContext()
386 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl() argument
388 if (SemaDC == LexicalDC) { in setDeclContextsImpl()
393 MDC->LexicalDC = LexicalDC; in setDeclContextsImpl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h256 DeclContext *LexicalDC; member
910 return getMultipleDC()->LexicalDC; in getLexicalDeclContext()
1266 void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp174 static DeclContext *getPrimaryDCForAnonymousDecl(DeclContext *LexicalDC);
613 auto *LexicalDC = in VisitDecl() local
615 if (!LexicalDC) in VisitDecl()
616 LexicalDC = SemaDC; in VisitDecl()
626 D->setDeclContextsImpl(MergedSemaDC ? MergedSemaDC : SemaDC, LexicalDC, in VisitDecl()
3347 ASTDeclReader::getPrimaryDCForAnonymousDecl(DeclContext *LexicalDC) { in getPrimaryDCForAnonymousDecl() argument
3349 if (auto *RD = dyn_cast<CXXRecordDecl>(LexicalDC)) { in getPrimaryDCForAnonymousDecl()
3352 } else if (auto *OID = dyn_cast<ObjCInterfaceDecl>(LexicalDC)) { in getPrimaryDCForAnonymousDecl()
3359 for (auto *D : merged_redecls(cast<Decl>(LexicalDC))) { in getPrimaryDCForAnonymousDecl()
H A DASTReader.cpp9753 DeclContext *LexicalDC = cast<DeclContext>(GetDecl(Info.LexicalDC)); in finishPendingActions() local
9754 Info.D->setDeclContextsImpl(SemaDC, LexicalDC, getContext()); in finishPendingActions()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h1137 GlobalDeclID LexicalDC; member
1516 GlobalDeclID LexicalDC) { in addPendingDeclContextInfo() argument
1518 PendingDeclContextInfo Info = { D, SemaDC, LexicalDC }; in addPendingDeclContextInfo()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp303 if (const DeclContext *LexicalDC in getCurrentMangleNumberContext() local
305 if (LexicalDC->isRecord()) in getCurrentMangleNumberContext()
H A DSemaTemplateInstantiateDecl.cpp2217 DeclContext *LexicalDC = Owner; in VisitFunctionDecl() local
2220 LexicalDC = D->getDeclContext(); in VisitFunctionDecl()
2223 LexicalDC = SemaRef.CurContext; in VisitFunctionDecl()
2226 Function->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
2258 FunctionTemplate->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
H A DSemaCodeComplete.cpp1002 const DeclContext *LexicalDC = ND->getLexicalDeclContext(); in getBasePriority() local
1003 if (LexicalDC->isFunctionOrMethod()) { in getBasePriority()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h11826 const DeclContext *LexicalDC = nullptr; variable
11835 : DC(DeclCtx), LexicalDC(LexicalDeclCtx), Loc(Loc) { in TemplateCompareNewDeclInfo()
11836 assert(DC && LexicalDC && in TemplateCompareNewDeclInfo()
11850 return ND ? ND->getLexicalDeclContext() : LexicalDC; in getLexicalDeclContext()