Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtSYCL.h47 SYCLKernelCallStmt(CompoundStmt *CS, OutlinedFunctionDecl *OFD) in SYCLKernelCallStmt()
54 CompoundStmt *getOriginalStmt() { return cast<CompoundStmt>(OriginalStmt); } in getOriginalStmt()
55 const CompoundStmt *getOriginalStmt() const { in getOriginalStmt()
56 return cast<CompoundStmt>(OriginalStmt); in getOriginalStmt()
58 void setOriginalStmt(CompoundStmt *CS) { OriginalStmt = CS; } in setOriginalStmt()
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.h147 friend class CompoundStmt;
1729 class CompoundStmt final
1731 private llvm::TrailingObjects<CompoundStmt, Stmt *, FPOptionsOverride> {
1741 CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures,
1743 explicit CompoundStmt(EmptyShell Empty) : Stmt(CompoundStmtClass, Empty) {}
1758 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1763 explicit CompoundStmt(SourceLocation Loc) : CompoundStmt(Loc, Loc) {}
1765 CompoundStmt(SourceLocation Loc, SourceLocation EndLoc)
1772 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1862 return const_cast<CompoundStmt *>(this)->getStmtExprResult();
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DRawPtrRefLocalVarsChecker.cpp116 const CompoundStmt *guardiansClosestCompStmtAncestor = nullptr; in isGuardedScopeEmbeddedInGuardianScope()
127 if (auto *CStmtParentAncestor = guardianAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
141 const CompoundStmt *FirstCompondStmt = nullptr; in isGuardedScopeEmbeddedInGuardianScope()
149 if (auto *CStmtAncestor = guardedVarAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
156 auto *GuardedScope = const_cast<CompoundStmt *>(FirstCompondStmt); in isGuardedScopeEmbeddedInGuardianScope()
259 bool TraverseCompoundStmt(CompoundStmt *CS) override { 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.cpp136 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body); in SynthesizeFunctionResult()
176 CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body); in SynthesizeObjCMethodResult()
213 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.cpp213 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
374 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures, in CompoundStmt() function in CompoundStmt
384 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
390 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
396 alignof(CompoundStmt)); in Create()
397 return new (Mem) CompoundStmt(Stmts, FPFeatures, LB, RB); in Create()
400 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty()
404 alignof(CompoundStmt)); in CreateEmpty()
405 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.cpp111 if (auto *CS = dyn_cast<CompoundStmt>(S)) { in PrintControlledStmt()
121 void PrintRawCompoundStmt(CompoundStmt *S);
131 void PrintFPPragmas(CompoundStmt *S);
178 void StmtPrinter::PrintRawCompoundStmt(CompoundStmt *Node) { in PrintRawCompoundStmt()
188 void StmtPrinter::PrintFPPragmas(CompoundStmt *S) { in PrintFPPragmas()
271 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) { in VisitCompoundStmt()
336 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
349 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
392 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
597 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenStmt.cpp26 void CIRGenFunction::emitCompoundStmtWithoutScope(const CompoundStmt &s) { in emitCompoundStmtWithoutScope()
35 void CIRGenFunction::emitCompoundStmt(const CompoundStmt &s) { in emitCompoundStmt()
248 emitCompoundStmtWithoutScope(cast<CompoundStmt>(*s)); in emitSimpleStmt()
250 emitCompoundStmt(cast<CompoundStmt>(*s)); in emitSimpleStmt()
468 result = emitStmt(sub, /*useCurrentScope=*/!isa<CompoundStmt>(sub)); in emitCaseDefaultCascade()
834 if (!isa<CompoundStmt>(s)) in emitSwitchBody()
837 auto *compoundStmt = cast<CompoundStmt>(s); in emitSwitchBody()
854 if (mlir::failed(emitStmt(c, /*useCurrentScope=*/!isa<CompoundStmt>(c)))) in emitSwitchBody()
H A DCIRGenClass.cpp352 assert(isa<CompoundStmt>(rootS) && in emitImplicitAssignmentOperatorBody()
354 const auto *rootCS = cast<CompoundStmt>(rootS); in emitImplicitAssignmentOperatorBody()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCloneDetection.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()
255 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.cpp592 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
626 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
633 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
643 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
H A DCFG.cpp589 CFGBlock *VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed);
2163 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in addLocalScopeForStmt()
2330 return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed); in Visit()
2917 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C, in VisitCompoundStmt()
3223 if (!isa<CompoundStmt>(Else)) in VisitIfStmt()
3246 if (!isa<CompoundStmt>(Then)) in VisitIfStmt()
3686 if (!isa<CompoundStmt>(F->getBody())) in VisitForStmt()
4021 if (!isa<CompoundStmt>(W->getBody())) in VisitWhileStmt()
4344 if (!isa<CompoundStmt>(D->getBody())) in VisitDoStmt()
4503 if (!isa<CompoundStmt>(Terminator->getBody())) in VisitSwitchStmt()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaSYCL.h68 StmtResult BuildSYCLKernelCallStmt(FunctionDecl *FD, CompoundStmt *Body);
/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.cpp271 const CompoundStmt &CS) { in getStatementsRange()
278 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaAvailability.cpp789 const CompoundStmt *Scope) { in findLastStmtThatUsesDecl()
944 const CompoundStmt *Scope = nullptr; in DiagnoseDeclAvailability()
946 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in DiagnoseDeclAvailability()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp513 EmitCompoundStmt(cast<CompoundStmt>(*S)); in EmitSimpleStmt()
566 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
578 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S, in EmitCompoundStmtWithoutScope()
1070 if (const CompoundStmt *Compound = dyn_cast<CompoundStmt>(Body)) in hasEmptyLoopBody()
2039 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in CollectStatementsForCase()
2042 CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end(); in CollectStatementsForCase()

1234