Home
last modified time | relevance | path

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

1234

/freebsd/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/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.h323 const CompoundStmt *getSynchBody() const { in getSynchBody()
324 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
326 CompoundStmt *getSynchBody() { in getSynchBody()
327 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
H A DStmt.h145 friend class CompoundStmt;
1604 class CompoundStmt final
1606 private llvm::TrailingObjects<CompoundStmt, Stmt *, FPOptionsOverride> {
1616 CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures,
1618 explicit CompoundStmt(EmptyShell Empty) : Stmt(CompoundStmtClass, Empty) {}
1633 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1638 explicit CompoundStmt(SourceLocation Loc) : CompoundStmt(Loc, Loc) {}
1640 CompoundStmt(SourceLocation Loc, SourceLocation EndLoc)
1647 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1737 return const_cast<CompoundStmt *>(this)->getStmtExprResult();
[all …]
/freebsd/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 DTransforms.cpp246 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
247 for (CompoundStmt::body_iterator in TraverseStmtExpr()
256 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp59 const CompoundStmt *guardiansClosestCompStmtAncestor = nullptr; in isGuardedScopeEmbeddedInGuardianScope()
70 if (auto *CStmtParentAncestor = guardianAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
92 if (auto *CStmtAncestor = guardedVarAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
178 bool TraverseCompoundStmt(CompoundStmt *CS) { in checkASTDecl()
/freebsd/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.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()
H A DASTResultSynthesizer.h16 class CompoundStmt; variable
135 bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp205 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
366 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures, in CompoundStmt() function in CompoundStmt
376 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
383 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
389 alignof(CompoundStmt)); in Create()
390 return new (Mem) CompoundStmt(Stmts, FPFeatures, LB, RB); in Create()
393 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty()
397 alignof(CompoundStmt)); in CreateEmpty()
398 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()
331 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
344 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
387 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
588 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
[all …]
/freebsd/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 DPathDiagnostic.cpp597 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
631 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
638 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
648 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
H A DCFG.cpp567 CFGBlock *VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed);
2074 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in addLocalScopeForStmt()
2241 return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed); in Visit()
2808 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C, in VisitCompoundStmt()
3114 if (!isa<CompoundStmt>(Else)) in VisitIfStmt()
3137 if (!isa<CompoundStmt>(Then)) in VisitIfStmt()
3574 if (!isa<CompoundStmt>(F->getBody())) in VisitForStmt()
3909 if (!isa<CompoundStmt>(W->getBody())) in VisitWhileStmt()
4232 if (!isa<CompoundStmt>(D->getBody())) in VisitDoStmt()
4391 if (!isa<CompoundStmt>(Terminator->getBody())) in VisitSwitchStmt()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCloneDetection.h27 class CompoundStmt; variable
61 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
H A DPathDiagnostic.h294 static PathDiagnosticLocation createBeginBrace(const CompoundStmt *CS,
299 static PathDiagnosticLocation createEndBrace(const CompoundStmt *CS,
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp31 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/freebsd/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/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp272 const CompoundStmt &CS) { in getStatementsRange()
279 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp202 CompoundStmt::Create(AST, {Assign}, FPOptionsOverride(), in addDefaultHandleConstructor()
283 MethodDecl->setBody(CompoundStmt::Create(AST, {Return}, FPOptionsOverride(), in addArraySubscriptOperator()
H A DSemaAvailability.cpp746 const CompoundStmt *Scope) { in findLastStmtThatUsesDecl()
904 const CompoundStmt *Scope = nullptr; in DiagnoseDeclAvailability()
906 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in DiagnoseDeclAvailability()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp466 EmitCompoundStmt(cast<CompoundStmt>(*S)); in EmitSimpleStmt()
502 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
514 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S, in EmitCompoundStmtWithoutScope()
979 if (const CompoundStmt *Compound = dyn_cast<CompoundStmt>(Body)) in hasEmptyLoopBody()
1890 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in CollectStatementsForCase()
1893 CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end(); in CollectStatementsForCase()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp185 auto *Body = dyn_cast_or_null<CompoundStmt>(MethodDecl->getBody()); in getMemberForAccessor()

1234