Home
last modified time | relevance | path

Searched refs:CompoundStmt (Results 1 – 25 of 149) sorted by relevance

123456

/llvm-project-15.0.7/clang/test/Import/objc-try-catch/
H A Dtest.m8 // CHECK-NEXT: CompoundStmt
18 // CHECK-NEXT: CompoundStmt
20 // CHECK-NEXT: CompoundStmt
23 // CHECK-NEXT: CompoundStmt
28 // CHECK-NEXT: CompoundStmt
35 // CHECK-NEXT: CompoundStmt
38 // CHECK-NEXT: CompoundStmt
40 // CHECK-NEXT: CompoundStmt
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantControlFlowCheck.cpp48 if (const auto *Return = Result.Nodes.getNodeAs<CompoundStmt>("return")) in check()
51 Result.Nodes.getNodeAs<CompoundStmt>("continue")) in check()
56 const MatchFinder::MatchResult &Result, const CompoundStmt *Block) { in checkRedundantReturn()
57 CompoundStmt::const_reverse_body_iterator Last = Block->body_rbegin(); in checkRedundantReturn()
64 const MatchFinder::MatchResult &Result, const CompoundStmt *Block) { in checkRedundantContinue()
65 CompoundStmt::const_reverse_body_iterator Last = Block->body_rbegin(); in checkRedundantContinue()
72 const MatchFinder::MatchResult &Result, const CompoundStmt *const Block, in issueDiagnostic()
78 CompoundStmt::const_reverse_body_iterator Previous = ++Block->body_rbegin(); in issueDiagnostic()
H A DRedundantControlFlowCheck.h39 const CompoundStmt *Block);
43 const CompoundStmt *Block);
46 const CompoundStmt *Block, const SourceRange &StmtRange,
H A DMisleadingIndentationCheck.cpp57 const CompoundStmt *CStmt) { in missingBracesCheck()
78 if (isa<CompoundStmt>(Inner)) in missingBracesCheck()
120 if (const auto *CStmt = Result.Nodes.getNodeAs<CompoundStmt>("compound")) in check()
/llvm-project-15.0.7/clang/test/Index/
H A Dc-index-getCursor-test.m114 // CHECK: [44:42 - 45:2] CompoundStmt=
118 // CHECK: [45:12 - 46:2] CompoundStmt=
125 // CHECK: [46:19 - 47:2] CompoundStmt=
134 // CHECK: [47:27 - 48:2] CompoundStmt=
140 // CHECK: [48:15 - 49:2] CompoundStmt=
144 // CHECK: [49:7 - 50:2] CompoundStmt=
148 // CHECK: [50:13 - 51:2] CompoundStmt=
156 // CHECK: [51:44 - 52:3] CompoundStmt=
164 // CHECK: [52:37 - 53:2] CompoundStmt=
H A Dannotate-tokens.m189 // CHECK: Punctuation: "{" [6:28 - 6:29] CompoundStmt=
192 // CHECK: Punctuation: ";" [7:11 - 7:12] CompoundStmt=
201 // CHECK: Punctuation: ";" [8:21 - 8:22] CompoundStmt=
202 // CHECK: Punctuation: "}" [9:1 - 9:2] CompoundStmt=
233 // CHECK: Punctuation: "{" [23:1 - 23:2] CompoundStmt=
239 // CHECK: Punctuation: "}" [25:1 - 25:2] CompoundStmt=
290 // CHECK: Punctuation: "{" [39:1 - 39:2] CompoundStmt=
302 // CHECK: Punctuation: "}" [42:1 - 42:2] CompoundStmt=
313 // CHECK: Punctuation: "{" [44:1 - 44:2] CompoundStmt=
319 // CHECK: Punctuation: "}" [46:1 - 46:2] CompoundStmt=
[all …]
H A Dannotate-subscripting.m45 // CHECK: Punctuation: ";" [24:15 - 24:16] CompoundStmt=
62 // CHECK: Punctuation: ";" [26:22 - 26:23] CompoundStmt=
70 // CHECK: Punctuation: ";" [33:30 - 33:31] CompoundStmt=
77 // CHECK: Punctuation: ";" [34:30 - 34:31] CompoundStmt=
/llvm-project-15.0.7/mlir/include/mlir/Tools/PDLL/AST/
H A DNodes.h177 class CompoundStmt final : public Node::NodeBase<CompoundStmt, Stmt>,
188 return const_cast<CompoundStmt *>(this)->getChildren(); in getChildren()
194 CompoundStmt(SMRange location, unsigned numChildren) in CompoundStmt() function
201 friend class llvm::TrailingObjects<CompoundStmt, Stmt *>;
301 CompoundStmt *rewriteBody);
311 CompoundStmt *rewriteBody;
904 const CompoundStmt *body, Type resultType);
924 const CompoundStmt *constraintBody;
995 const CompoundStmt *body);
1024 const CompoundStmt *patternBody;
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp115 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
161 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
165 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt2)) { in VisitIfStmt()
433 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1); in isIdenticalStmt()
434 const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2); in isIdenticalStmt()
439 CompoundStmt::const_body_iterator I1 = CompStmt1->body_begin(); in isIdenticalStmt()
440 CompoundStmt::const_body_iterator I2 = CompStmt2->body_begin(); in isIdenticalStmt()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/AST/
H A DNodes.cpp55 const CompoundStmt, const EraseStmt, const LetStmt, in visit()
78 void visitImpl(const CompoundStmt *stmt) { in visitImpl()
187 CompoundStmt *CompoundStmt::create(Context &ctx, SMRange loc, in create()
189 unsigned allocSize = CompoundStmt::totalSizeToAlloc<Stmt *>(children.size()); in create()
190 void *rawData = ctx.getAllocator().Allocate(allocSize, alignof(CompoundStmt)); in create()
192 CompoundStmt *stmt = new (rawData) CompoundStmt(loc, children.size()); in create()
235 CompoundStmt *rewriteBody) { in create()
444 Optional<StringRef> codeBlock, const CompoundStmt *body, Type resultType) { in createImpl()
501 const CompoundStmt *body) { in create()
514 const CompoundStmt *body, in createImpl()
H A DNodePrinter.cpp75 void printImpl(const CompoundStmt *stmt);
167 const CompoundStmt, const EraseStmt, const LetStmt, const ReplaceStmt, in print()
188 void NodePrinter::printImpl(const CompoundStmt *stmt) { in printImpl()
299 if (const CompoundStmt *body = decl->getBody()) in printImpl()
352 if (const CompoundStmt *body = decl->getBody()) in printImpl()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp87 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
154 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
155 for (CompoundStmt::body_iterator in TraverseStmtExpr()
164 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
184 static bool isBodyEmpty(CompoundStmt *body, ASTContext &Ctx, in isBodyEmpty()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DSwapIfBranches.cpp54 if (llvm::isa_and_nonnull<CompoundStmt>(N->ASTNode.get<Stmt>())) in REGISTER_TWEAK()
60 return If && isa_and_nonnull<CompoundStmt>(If->getThen()) && in REGISTER_TWEAK()
61 isa_and_nonnull<CompoundStmt>(If->getElse()); in REGISTER_TWEAK()
/llvm-project-15.0.7/clang/test/AST/
H A Dast-dump-stmt.m39 // CHECK-NEXT: CompoundStmt
42 // CHECK-NEXT: CompoundStmt
44 // CHECK-NEXT: CompoundStmt
H A Dpragma-attribute-objc-subject-match-rules.m64 // CHECK-OBJC_METHOD-NEXT: CompoundStmt
69 // CHECK-OBJC_METHOD-NEXT: CompoundStmt
74 // CHECK-OBJC_METHOD_IS_INSTANCE-NEXT: CompoundStmt
103 // CHECK-BLOCK-NEXT: CompoundStmt
107 // CHECK-HAS_TYPE_FUNCTION_TYPE-NEXT: CompoundStmt
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DASTSelectionTest.cpp208 const auto &Body = checkNode<CompoundStmt>( in TEST()
230 const auto &Body = checkNode<CompoundStmt>( in TEST()
246 const auto &Body = checkNode<CompoundStmt>( in TEST()
264 const auto &Body = checkNode<CompoundStmt>( in TEST()
316 const auto &Body = checkNode<CompoundStmt>( in TEST()
337 const auto &Body = checkNode<CompoundStmt>( in TEST()
359 const auto &Body = checkNode<CompoundStmt>( in TEST()
546 return checkNode<CompoundStmt>(Fn.Children[0], in checkFnBody()
733 EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>())); in TEST()
754 EXPECT_TRUE(isa<CompoundStmt>(Parents[2].get().Node.get<Stmt>())); in TEST()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.h38 void registerScope(const CompoundStmt *LocalScope, ASTContext *Context);
41 llvm::DenseMap<const CompoundStmt *, MutationAnalyzer> ScopesCache;
/llvm-project-15.0.7/mlir/test/mlir-pdll/Parser/
H A Dpattern.pdll5 // CHECK: `-CompoundStmt
31 // CHECK: `-CompoundStmt
H A Drewrite.pdll21 // CHECK: `-CompoundStmt {{.*}}
39 // CHECK: `-CompoundStmt {{.*}}
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp116 return visitCompoundStmt(cast<CompoundStmt>(S)); in visitStmt()
135 const CompoundStmt *CompoundStmt) { in visitCompoundStmt() argument
137 for (auto *InnerStmt : CompoundStmt->body()) in visitCompoundStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtCXX.h99 CompoundStmt *getTryBlock() { in getTryBlock()
100 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
102 const CompoundStmt *getTryBlock() const { in getTryBlock()
103 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
266 CompoundStmt *SubStmt) in MSDependentExistsStmt()
292 CompoundStmt *getSubStmt() const { in getSubStmt()
293 return reinterpret_cast<CompoundStmt *>(SubStmt); in getSubStmt()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp55 CompoundStmt *body_compound_stmt = dyn_cast<CompoundStmt>(body_stmt); in ExtractFromFunctionDecl()
64 for (CompoundStmt::const_body_iterator bi = body_compound_stmt->body_begin(), in ExtractFromFunctionDecl()
H A DASTResultSynthesizer.h16 class CompoundStmt; variable
135 bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC);
H A DASTResultSynthesizer.cpp138 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body); in SynthesizeFunctionResult()
182 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body); in SynthesizeObjCMethodResult()
221 bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body, in SynthesizeBodyResult()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp81 const CompoundStmt *guardiansClosestCompStmtAncestor = nullptr; in isGuardedScopeEmbeddedInGuardianScope()
92 if (auto *CStmtParentAncestor = guardianAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
114 if (auto *CStmtAncestor = guardedVarAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()

123456