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.cpp417 NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC,
2144 NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC, in ImportDeclParts() argument
2175 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in ImportDeclParts()
2730 DeclContext *DC, *LexicalDC; in VisitEmptyDecl() local
2731 if (Error Err = ImportDeclContext(D, DC, LexicalDC)) in VisitEmptyDecl()
2743 ToD->setLexicalDeclContext(LexicalDC); in VisitEmptyDecl()
2744 LexicalDC->addDeclInternal(ToD); in VisitEmptyDecl()
2758 DeclContext *DC, *LexicalDC; in VisitBindingDecl() local
2762 if (Error Err = ImportDeclParts(D, DC, LexicalDC, Name, ToND, Loc)) in VisitBindingDecl()
2818 DeclContext *LexicalDC = DC; in VisitStaticAssertDecl() local
[all …]
H A DDeclBase.cpp375 getMultipleDC()->LexicalDC = DC; in setLexicalDeclContext()
392 void Decl::setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC, in setDeclContextsImpl() argument
394 if (SemaDC == LexicalDC) { in setDeclContextsImpl()
399 MDC->LexicalDC = LexicalDC; in setDeclContextsImpl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h256 DeclContext *LexicalDC; member
918 return getMultipleDC()->LexicalDC; in getLexicalDeclContext()
1277 void setDeclContextsImpl(DeclContext *SemaDC, DeclContext *LexicalDC,
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderDecl.cpp209 static DeclContext *getPrimaryDCForAnonymousDecl(DeclContext *LexicalDC);
598 auto *LexicalDC = in VisitDecl() local
600 if (!LexicalDC) in VisitDecl()
601 LexicalDC = SemaDC; in VisitDecl()
611 D->setDeclContextsImpl(MergedSemaDC ? MergedSemaDC : SemaDC, LexicalDC, in VisitDecl()
3395 ASTDeclReader::getPrimaryDCForAnonymousDecl(DeclContext *LexicalDC) { in getPrimaryDCForAnonymousDecl() argument
3397 if (auto *RD = dyn_cast<CXXRecordDecl>(LexicalDC)) { in getPrimaryDCForAnonymousDecl()
3400 } else if (auto *OID = dyn_cast<ObjCInterfaceDecl>(LexicalDC)) { in getPrimaryDCForAnonymousDecl()
3407 for (auto *D : merged_redecls(cast<Decl>(LexicalDC))) { in getPrimaryDCForAnonymousDecl()
H A DASTReader.cpp10363 DeclContext *LexicalDC = cast<DeclContext>(GetDecl(Info.LexicalDC)); in finishPendingActions() local
10364 Info.D->setDeclContextsImpl(SemaDC, LexicalDC, getContext()); in finishPendingActions()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h1259 GlobalDeclID LexicalDC; member
1701 GlobalDeclID LexicalDC) { in addPendingDeclContextInfo() argument
1703 PendingDeclContextInfo Info = { D, SemaDC, LexicalDC }; in addPendingDeclContextInfo()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp318 if (const DeclContext *LexicalDC in getCurrentMangleNumberContext() local
320 if (LexicalDC->isRecord()) in getCurrentMangleNumberContext()
H A DSemaTemplateInstantiateDecl.cpp2761 DeclContext *LexicalDC = Owner; in VisitFunctionDecl() local
2764 LexicalDC = D->getDeclContext(); in VisitFunctionDecl()
2767 LexicalDC = SemaRef.CurContext; in VisitFunctionDecl()
2773 Function->setLexicalDeclContext(LexicalDC); in VisitFunctionDecl()
2805 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.h12060 const DeclContext *LexicalDC = nullptr; variable
12069 : DC(DeclCtx), LexicalDC(LexicalDeclCtx), Loc(Loc) { in TemplateCompareNewDeclInfo()
12070 assert(DC && LexicalDC && in TemplateCompareNewDeclInfo()
12084 return ND ? ND->getLexicalDeclContext() : LexicalDC; in getLexicalDeclContext()