Home
last modified time | relevance | path

Searched refs:LocalScope (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DHoverTests.cpp80 HI.LocalScope = "Foo::"; in TEST()
99 HI.LocalScope = "Foo::"; in TEST()
117 HI.LocalScope = "Foo::"; in TEST()
396 HI.LocalScope = "X::"; in TEST()
406 HI.LocalScope = "X::"; in TEST()
978 HI.LocalScope = ""; in TEST()
995 HI.LocalScope = ""; in TEST()
1010 HI.LocalScope = ""; in TEST()
1024 HI.LocalScope = ""; in TEST()
1068 EXPECT_EQ(H->LocalScope, Expected.LocalScope); in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DByteCodeExprGen.h32 template <class Emitter> class LocalScope; variable
160 friend class LocalScope<Emitter>;
280 template <class Emitter> class LocalScope : public VariableScope<Emitter> {
282 LocalScope(ByteCodeExprGen<Emitter> *Ctx) : VariableScope<Emitter>(Ctx) {} in LocalScope() function
284 ~LocalScope() override { this->emitDestruction(); } in ~LocalScope()
307 template <class Emitter> class BlockScope final : public LocalScope<Emitter> {
309 BlockScope(ByteCodeExprGen<Emitter> *Ctx) : LocalScope<Emitter>(Ctx) {} in BlockScope()
318 template <class Emitter> class ExprScope final : public LocalScope<Emitter> {
320 ExprScope(ByteCodeExprGen<Emitter> *Ctx) : LocalScope<Emitter>(Ctx) {} in ExprScope()
H A DByteCodeExprGen.cpp29 template <class Emitter> class DeclScope final : public LocalScope<Emitter> {
32 : LocalScope<Emitter>(Ctx), Scope(Ctx->P, VD) {} in DeclScope()
538 DeclScope<Emitter> LocalScope(this, VD); in visitDecl() local
552 DeclScope<Emitter> LocalScope(this, VD); in visitDecl() local
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.cpp114 const auto *LocalScope = Result.Nodes.getNodeAs<CompoundStmt>("scope"); in check() local
157 registerScope(LocalScope, Result.Context); in check()
160 if (ScopesCache[LocalScope]->isMutated(Variable)) in check()
203 void ConstCorrectnessCheck::registerScope(const CompoundStmt *LocalScope, in registerScope() argument
205 auto &Analyzer = ScopesCache[LocalScope]; in registerScope()
207 Analyzer = std::make_unique<ExprMutationAnalyzer>(*LocalScope, *Context); in registerScope()
H A DConstCorrectnessCheck.h38 void registerScope(const CompoundStmt *LocalScope, ASTContext *Context);
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp224 class LocalScope { class
329 int LocalScope::const_iterator::distance(LocalScope::const_iterator L) { in distance()
346 LocalScope::const_iterator
347 LocalScope::const_iterator::shared_parent(LocalScope::const_iterator L) { in shared_parent()
762 void addScopesEnd(LocalScope::const_iterator B, LocalScope::const_iterator E,
769 LocalScope* createOrReuseLocalScope(LocalScope* Scope);
774 LocalScope* addLocalScopeForVarDecl(VarDecl *VD, LocalScope* Scope = nullptr);
878 LocalScope::const_iterator B, LocalScope::const_iterator E);
1931 LocalScope* CFGBuilder::createOrReuseLocalScope(LocalScope* Scope) { in createOrReuseLocalScope()
2067 LocalScope::const_iterator B, LocalScope::const_iterator E) { in prependAutomaticObjDtorsWithTerminator()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfCompileUnit.h181 auto *LocalScope = cast<DILocalScope>(Scope)->getNonLexicalBlockFileScope(); in addImportedEntity() local
182 ImportedEntities[LocalScope].push_back(IE); in addImportedEntity()
H A DDwarfDebug.cpp1922 const DILocalScope *LocalScope = in collectEntityInfo() local
1926 Scope = LScopes.findInlinedScope(LocalScope, IA); in collectEntityInfo()
1928 Scope = LScopes.findLexicalScope(LocalScope); in collectEntityInfo()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHover.h66 std::string LocalScope; member
H A DHover.cpp587 HI.LocalScope = getLocalScope(D); in getHoverContents()
588 if (!HI.LocalScope.empty()) in getHoverContents()
589 HI.LocalScope.append("::"); in getHoverContents()
783 HI.LocalScope = A->getScopeName()->getName().str(); in getHoverContents()
1159 if (!LocalScope.empty()) { in present()
1164 "// In " + llvm::StringRef(LocalScope).rtrim(':').str() + '\n'; in present()
/llvm-project-15.0.7/llvm/lib/IR/
H A DDebugInfo.cpp129 if (auto *LocalScope = dyn_cast_or_null<DILocalScope>(Scope)) in getDISubprogram() local
130 return LocalScope->getSubprogram(); in getDISubprogram()
H A DVerifier.cpp5664 static DISubprogram *getSubprogram(Metadata *LocalScope) { in getSubprogram() argument
5665 if (!LocalScope) in getSubprogram()
5668 if (auto *SP = dyn_cast<DISubprogram>(LocalScope)) in getSubprogram()
5671 if (auto *LB = dyn_cast<DILexicalBlockBase>(LocalScope)) in getSubprogram()
5675 assert(!isa<DILocalScope>(LocalScope) && "Unknown type of local scope"); in getSubprogram()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGStmtOpenMP.cpp630 CodeGenFunction::OMPPrivateScope LocalScope(*this); in GenerateOpenMPCapturedStmtFunction() local
633 LocalScope.addPrivate(LocalAddrPair.second.first, in GenerateOpenMPCapturedStmtFunction()
637 (void)LocalScope.Privatize(); in GenerateOpenMPCapturedStmtFunction()
642 (void)LocalScope.ForceCleanup(); in GenerateOpenMPCapturedStmtFunction()
H A DCGOpenMPRuntime.cpp5089 CodeGenFunction::RunCleanupsScope LocalScope(CGF); in emitTaskCall() local
6154 CodeGenFunction::RunCleanupsScope LocalScope(CGF); in emitTaskwaitCall() local