Home
last modified time | relevance | path

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

1234

/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmtCXX.h78 CXXTryStmt(SourceLocation tryLoc, CompoundStmt *tryBlock,
88 CompoundStmt *tryBlock, ArrayRef<Stmt *> handlers);
100 CompoundStmt *getTryBlock() { in getTryBlock()
101 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
103 const CompoundStmt *getTryBlock() const { in getTryBlock()
104 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
267 CompoundStmt *SubStmt) in MSDependentExistsStmt()
293 CompoundStmt *getSubStmt() const { in getSubStmt()
294 return reinterpret_cast<CompoundStmt *>(SubStmt); in getSubStmt()
380 CompoundStmt *getBody() const { in getBody()
[all …]
H A DStmtObjC.h322 const CompoundStmt *getSynchBody() const { in getSynchBody()
323 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
325 CompoundStmt *getSynchBody() { in getSynchBody()
326 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
H A DStmt.h145 friend class CompoundStmt; in alignas() local
1602 class CompoundStmt final
1614 CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures,
1636 explicit CompoundStmt(SourceLocation Loc) : CompoundStmt(Loc, Loc) {} in CompoundStmt() function
1638 CompoundStmt(SourceLocation Loc, SourceLocation EndLoc) in CompoundStmt() function
1730 return const_cast<CompoundStmt *>(this)->getStmtExprResult(); in getStmtExprResult()
3611 CompoundStmt *getBlock() const { in getBlock()
3612 return cast<CompoundStmt>(Children[BLOCK]); in getBlock()
3648 CompoundStmt *getBlock() const { return cast<CompoundStmt>(Block); } in getBlock()
3692 CompoundStmt* getTryBlock() const { in getTryBlock()
[all …]
/freebsd-14.2/contrib/llvm-project/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()
H A DTransAutoreleasePool.cpp163 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
226 CompoundStmt *CompoundParent;
296 void handlePoolScope(PoolScope &scope, CompoundStmt *compoundS) { in handlePoolScope()
H A DTransforms.cpp245 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
246 for (CompoundStmt::body_iterator in TraverseStmtExpr()
255 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/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()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp94 assert(cast<CompoundStmt>(MD->getBody())->body_empty()); in emitLambdaStaticInvokerBody()
248 return visitCompoundStmt(cast<CompoundStmt>(S)); in visitStmt()
297 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in visitLoopBody()
309 const CompoundStmt *CompoundStmt) { in visitCompoundStmt() argument
311 for (auto *InnerStmt : CompoundStmt->body()) in visitCompoundStmt()
H A DByteCodeStmtGen.h52 bool visitCompoundStmt(const CompoundStmt *S);
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp204 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
365 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures, in CompoundStmt() function in CompoundStmt
375 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
382 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
388 alignof(CompoundStmt)); in Create()
389 return new (Mem) CompoundStmt(Stmts, FPFeatures, LB, RB); in Create()
392 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty()
396 alignof(CompoundStmt)); in CreateEmpty()
397 CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell()); in CreateEmpty()
H A DStmtCXX.cpp26 CompoundStmt *tryBlock, in Create()
40 CXXTryStmt::CXXTryStmt(SourceLocation tryLoc, CompoundStmt *tryBlock, in CXXTryStmt()
H A DStmtPrinter.cpp112 if (auto *CS = dyn_cast<CompoundStmt>(S)) { in PrintControlledStmt()
122 void PrintRawCompoundStmt(CompoundStmt *S);
132 void PrintFPPragmas(CompoundStmt *S);
177 void StmtPrinter::PrintRawCompoundStmt(CompoundStmt *Node) { in PrintRawCompoundStmt()
187 void StmtPrinter::PrintFPPragmas(CompoundStmt *S) { in PrintFPPragmas()
266 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) { in VisitCompoundStmt()
328 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
341 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
384 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
585 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DCloneDetection.cpp23 StmtSequence::StmtSequence(const CompoundStmt *Stmt, const Decl *D, in StmtSequence()
63 auto CS = cast<CompoundStmt>(S); in begin()
71 auto CS = cast<CompoundStmt>(S); in end()
256 auto CS = dyn_cast<CompoundStmt>(S); in saveHash()
H A DBodyFarm.cpp63 CompoundStmt *makeCompound(ArrayRef<Stmt*>);
137 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound()
138 return CompoundStmt::Create(C, Stmts, FPOptionsOverride(), SourceLocation(), in makeCompound()
567 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
681 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
H A DPathDiagnostic.cpp594 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
628 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
635 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
645 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/
H A DCloneDetection.h27 class CompoundStmt; variable
61 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp31 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp279 const CompoundStmt &CS) { in getStatementsRange()
286 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp396 if (!isa<CompoundStmt>(CodeRangeStmt)) { in create()
436 IsPrevCompound = Node.get<CompoundStmt>() != nullptr; in isInFunctionLikeBodyOfCode()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp669 const CompoundStmt *Scope) { in findLastStmtThatUsesDecl()
819 const CompoundStmt *Scope = nullptr; in DiagnoseDeclAvailability()
821 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in DiagnoseDeclAvailability()
H A DHLSLExternalSemaSource.cpp198 CompoundStmt::Create(AST, {Assign}, FPOptionsOverride(), in addDefaultHandleConstructor()
279 MethodDecl->setBody(CompoundStmt::Create(AST, {Return}, FPOptionsOverride(), in addArraySubscriptOperator()

1234