Home
last modified time | relevance | path

Searched refs:DeclCtx (Results 1 – 11 of 11) sorted by relevance

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp220 auto *DeclCtx = D->getDeclContext(); in HandleTagDeclDefinition() local
221 while (DeclCtx) { in HandleTagDeclDefinition()
222 if (auto *D = dyn_cast<TagDecl>(DeclCtx)) in HandleTagDeclDefinition()
225 DeclCtx = DeclCtx->getParent(); in HandleTagDeclDefinition()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp378 const DeclContext &DeclCtx) in Environment() argument
380 CallStack.push_back(&DeclCtx); in Environment()
384 const DeclContext *DeclCtx = getDeclCtx(); in initialize() local
385 if (DeclCtx == nullptr) in initialize()
388 if (const auto *FuncDecl = dyn_cast<FunctionDecl>(DeclCtx)) { in initialize()
399 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(DeclCtx)) { in initialize()
411 cast<CXXMethodDecl>(DeclCtx->getNonClosureAncestor()); in initialize()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DDeclBase.h271 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx; variable
273 bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
274 bool isOutOfSemaDC() const { return DeclCtx.is<MultipleDC*>(); } in isOutOfSemaDC()
277 return DeclCtx.get<MultipleDC*>(); in getMultipleDC()
281 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
396 DeclCtx(DC), Loc(L), DeclKind(DK), InvalidDecl(false), HasAttrs(false), in Decl()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaInternal.h214 DeclContext* DeclCtx; member
H A DSema.h7293 IdentifierInfo *Id, unsigned InitStyle, Expr *Init, DeclContext *DeclCtx);
8658 TemplateCompareNewDeclInfo(const DeclContext *DeclCtx, in TemplateCompareNewDeclInfo() argument
8662 : DC(DeclCtx), LexicalDC(LexicalDeclCtx), Loc(Loc) { in TemplateCompareNewDeclInfo()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h167 Environment(DataflowAnalysisContext &DACtx, const DeclContext &DeclCtx);
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp337 DeclCtx = DC; in setDeclContext()
367 DeclCtx = SemaDC; in setDeclContextsImpl()
372 DeclCtx = MDC; in setDeclContextsImpl()
H A DASTContext.cpp190 const auto *DeclCtx = D->getDeclContext(); in getDeclLocsForCommentSearch() local
199 if (!(DeclCtx && in getDeclLocsForCommentSearch()
200 Decl::castFromDeclContext(DeclCtx)->getLocation().isMacroID())) { in getDeclLocsForCommentSearch()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp2936 const AnalysisDeclContext *DeclCtx = in emitReport() local
2942 if (DeclCtx->isBodyAutosynthesized() && in emitReport()
2943 !DeclCtx->isBodyAutosynthesizedFromModelFile()) in emitReport()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaLambda.cpp809 IdentifierInfo *Id, unsigned InitStyle, Expr *Init, DeclContext *DeclCtx) { in createLambdaInitCaptureVarDecl() argument
820 VarDecl *NewVD = VarDecl::Create(Context, DeclCtx, Loc, Loc, Id, in createLambdaInitCaptureVarDecl()
H A DSemaLookup.cpp4790 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()