Home
last modified time | relevance | path

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

123

/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
HDIdenticalExprChecker.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()
431 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1); in isIdenticalStmt()
432 const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2); in isIdenticalStmt()
437 CompoundStmt::const_body_iterator I1 = CompStmt1->body_begin(); in isIdenticalStmt()
438 CompoundStmt::const_body_iterator I2 = CompStmt2->body_begin(); in isIdenticalStmt()
/freebsd-11-stable/contrib/llvm-project/clang/lib/ARCMigrate/
HDTransEmptyStatementsAndDealloc.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()
HDTransAutoreleasePool.cpp163 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
226 CompoundStmt *CompoundParent;
295 void handlePoolScope(PoolScope &scope, CompoundStmt *compoundS) { in handlePoolScope()
HDTransforms.cpp246 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
247 for (CompoundStmt::body_iterator in TraverseStmtExpr()
256 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/Interp/
HDByteCodeStmtGen.cpp116 return visitCompoundStmt(cast<CompoundStmt>(S)); in visitStmt()
135 const CompoundStmt *CompoundStmt) { in visitCompoundStmt() argument
137 for (auto *InnerStmt : CompoundStmt->body()) in visitCompoundStmt()
HDByteCodeStmtGen.h61 bool visitCompoundStmt(const CompoundStmt *S);
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
HDStmtCXX.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()
HDStmtObjC.h297 const CompoundStmt *getSynchBody() const { in getSynchBody()
298 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
300 CompoundStmt *getSynchBody() { in getSynchBody()
301 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
HDStmt.h130 friend class CompoundStmt; in alignas() local
1347 class CompoundStmt final : public Stmt,
1348 private llvm::TrailingObjects<CompoundStmt, Stmt *> {
1355 CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, SourceLocation RB);
1356 explicit CompoundStmt(EmptyShell Empty) : Stmt(CompoundStmtClass, Empty) {} in CompoundStmt() function
1361 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1365 explicit CompoundStmt(SourceLocation Loc) in CompoundStmt() function
1372 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts);
1448 return const_cast<CompoundStmt *>(this)->getStmtExprResult(); in getStmtExprResult()
3247 CompoundStmt *getBlock() const { in getBlock()
[all …]
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
HDASTStructExtractor.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()
HDASTResultSynthesizer.cpp137 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body); in SynthesizeFunctionResult()
181 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body); in SynthesizeObjCMethodResult()
199 bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body, in SynthesizeBodyResult()
HDASTResultSynthesizer.h128 bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC);
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
HDStmt.cpp142 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
304 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, in CompoundStmt() function in CompoundStmt
312 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
319 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
322 C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt)); in Create()
323 return new (Mem) CompoundStmt(Stmts, LB, RB); in Create()
326 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, in CreateEmpty()
329 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
330 CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell()); in CreateEmpty()
HDStmtPrinter.cpp114 if (auto *CS = dyn_cast<CompoundStmt>(S)) { in PrintControlledStmt()
124 void PrintRawCompoundStmt(CompoundStmt *S);
178 void StmtPrinter::PrintRawCompoundStmt(CompoundStmt *Node) { in PrintRawCompoundStmt()
205 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) { in VisitCompoundStmt()
251 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
264 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
307 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
506 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
519 if (auto *CS = dyn_cast<CompoundStmt>(catchStmt->getCatchBody())) { in VisitObjCAtTryStmt()
527 PrintRawCompoundStmt(dyn_cast<CompoundStmt>(FS->getFinallyBody())); in VisitObjCAtTryStmt()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
HDCloneDetection.cpp22 StmtSequence::StmtSequence(const CompoundStmt *Stmt, const Decl *D, in StmtSequence()
62 auto CS = cast<CompoundStmt>(S); in begin()
70 auto CS = cast<CompoundStmt>(S); in end()
256 auto CS = dyn_cast<CompoundStmt>(S); in saveHash()
HDBodyFarm.cpp61 CompoundStmt *makeCompound(ArrayRef<Stmt*>);
134 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound()
135 return CompoundStmt::Create(C, Stmts, SourceLocation(), SourceLocation()); in makeCompound()
536 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
649 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
HDPathDiagnostic.cpp581 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
615 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
622 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
632 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
HDCFG.cpp552 CFGBlock *VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed);
1946 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in addLocalScopeForStmt()
2175 return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed); in Visit()
2709 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed) { in VisitCompoundStmt()
2721 for (CompoundStmt::reverse_body_iterator I=C->body_rbegin(), E=C->body_rend(); in VisitCompoundStmt()
2976 if (!isa<CompoundStmt>(Else)) in VisitIfStmt()
2999 if (!isa<CompoundStmt>(Then)) in VisitIfStmt()
3389 if (!isa<CompoundStmt>(F->getBody())) in VisitForStmt()
3729 if (!isa<CompoundStmt>(W->getBody())) in VisitWhileStmt()
3928 if (!isa<CompoundStmt>(D->getBody())) in VisitDoStmt()
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/
HDCloneDetection.h27 class CompoundStmt; variable
61 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
HDSourceExtraction.cpp30 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Transformer/
HDRangeSelector.cpp255 const CompoundStmt &CS) { in getStatementsRange()
262 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Core/
HDClangForward.h31 class CompoundStmt; variable
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/
HDASTSelection.cpp396 if (!isa<CompoundStmt>(CodeRangeStmt)) { in create()
436 IsPrevCompound = Node.get<CompoundStmt>() != nullptr; in isInFunctionLikeBodyOfCode()
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGStmt.cpp368 case Stmt::CompoundStmtClass: EmitCompoundStmt(cast<CompoundStmt>(*S)); break; in EmitSimpleStmt()
387 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
399 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S, in EmitCompoundStmtWithoutScope()
1413 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in CollectStatementsForCase()
1416 CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end(); in CollectStatementsForCase()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
HDBuildTree.cpp129 if (isa<CompoundStmt>(S)) in getStmtRange()
364 bool WalkUpFromCompoundStmt(CompoundStmt *S) { in WalkUpFromCompoundStmt()

123