Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DPopulateSwitch.cpp73 const DeclContext *DeclCtx = nullptr; member in clang::clangd::__anona71e2b0a0111::PopulateSwitch
107 DeclCtx = &CA->getDeclContext(); in REGISTER_TWEAK()
194 ASTContext &DeclASTCtx = DeclCtx->getParentASTContext(); in apply()
202 Text.append({"case ", getQualification(DeclASTCtx, DeclCtx, Loc, EnumD)}); in apply()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp217 auto *DeclCtx = D->getDeclContext(); in HandleTagDeclDefinition() local
218 while (DeclCtx) { in HandleTagDeclDefinition()
219 if (auto *D = dyn_cast<TagDecl>(DeclCtx)) in HandleTagDeclDefinition()
222 DeclCtx = DeclCtx->getParent(); in HandleTagDeclDefinition()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp272 const DeclContext *DeclCtx, SourceLocation Loc) { in isDeclVisibleAtLocation() argument
277 isNestedDeclContext(DeclCtx, D->getDeclContext())); in isDeclVisibleAtLocation()
763 const DeclContext *DeclCtx, SourceLocation Start, SourceLocation End, in replaceQualifiedSymbolInDeclContext() argument
765 const auto *NsDeclContext = DeclCtx->getEnclosingNamespaceContext(); in replaceQualifiedSymbolInDeclContext()
801 if (!isDeclVisibleAtLocation(*Result.SourceManager, UsingNamespace, DeclCtx, in replaceQualifiedSymbolInDeclContext()
815 if (!isDeclVisibleAtLocation(*Result.SourceManager, NamespaceAlias, DeclCtx, in replaceQualifiedSymbolInDeclContext()
850 if (isDeclVisibleAtLocation(*Result.SourceManager, Using, DeclCtx, Start)) { in replaceQualifiedSymbolInDeclContext()
862 bool Conflict = conflictInNamespace(DeclCtx->getParentASTContext(), in replaceQualifiedSymbolInDeclContext()
920 const auto *DeclCtx = Result.Nodes.getNodeAs<Decl>("dc"); in fixTypeLoc() local
921 assert(DeclCtx && "Empty decl context."); in fixTypeLoc()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DDataflowEnvironment.cpp170 const DeclContext &DeclCtx) in Environment() argument
172 if (const auto *FuncDecl = dyn_cast<FunctionDecl>(&DeclCtx)) { in Environment()
184 if (const auto *MethodDecl = dyn_cast<CXXMethodDecl>(&DeclCtx)) { in Environment()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclBase.h269 llvm::PointerUnion<DeclContext*, MultipleDC*> DeclCtx; variable
271 bool isInSemaDC() const { return DeclCtx.is<DeclContext*>(); } in isInSemaDC()
272 bool isOutOfSemaDC() const { return DeclCtx.is<MultipleDC*>(); } in isOutOfSemaDC()
275 return DeclCtx.get<MultipleDC*>(); in getMultipleDC()
279 return DeclCtx.get<DeclContext*>(); in getSemanticDC()
384 DeclCtx(DC), Loc(L), DeclKind(DK), InvalidDecl(false), HasAttrs(false), in Decl()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowEnvironment.h129 Environment(DataflowAnalysisContext &DACtx, const DeclContext &DeclCtx);
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DSymbolCollector.cpp491 const auto *DeclCtx = ND.getDeclContext(); in shouldCollectSymbol() local
492 switch (DeclCtx->getDeclKind()) { in shouldCollectSymbol()
506 if (!isa<RecordDecl>(DeclCtx)) in shouldCollectSymbol()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSemaInternal.h214 DeclContext* DeclCtx; member
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclBase.cpp329 DeclCtx = DC; in setDeclContext()
359 DeclCtx = SemaDC; in setDeclContextsImpl()
364 DeclCtx = MDC; in setDeclContextsImpl()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp92 auto *DeclCtx = cast<Decl>(MD->getDeclContext()); in getDefinition() local
93 if (DeclCtx->isInvalidDecl()) in getDefinition()
96 if (const auto *CD = dyn_cast<ObjCContainerDecl>(DeclCtx)) in getDefinition()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp2929 const AnalysisDeclContext *DeclCtx = in emitReport() local
2935 if (DeclCtx->isBodyAutosynthesized() && in emitReport()
2936 !DeclCtx->isBodyAutosynthesizedFromModelFile()) in emitReport()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaLookup.cpp4760 DeclContext *Ctx = NSI.DeclCtx; in performQualifiedLookups()