Home
last modified time | relevance | path

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

1234

/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/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()
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.h130 friend class CompoundStmt; variable
1418 class CompoundStmt final
1420 private llvm::TrailingObjects<CompoundStmt, Stmt *, FPOptionsOverride> {
1430 CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures,
1432 explicit CompoundStmt(EmptyShell Empty) : Stmt(CompoundStmtClass, Empty) {} in CompoundStmt() function
1447 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1452 explicit CompoundStmt(SourceLocation Loc) in CompoundStmt() function
1459 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1544 return const_cast<CompoundStmt *>(this)->getStmtExprResult(); in getStmtExprResult()
3400 CompoundStmt *getBlock() const { in getBlock()
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DUncountedLocalVarsChecker.cpp82 const CompoundStmt *guardiansClosestCompStmtAncestor = nullptr; in isGuardedScopeEmbeddedInGuardianScope()
93 if (auto *CStmtParentAncestor = guardianAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
115 if (auto *CStmtAncestor = guardedVarAncestor.get<CompoundStmt>()) { in isGuardedScopeEmbeddedInGuardianScope()
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp168 return visitCompoundStmt(cast<CompoundStmt>(S)); in visitStmt()
197 const CompoundStmt *CompoundStmt) { in visitCompoundStmt() argument
199 for (auto *InnerStmt : CompoundStmt->body()) in visitCompoundStmt()
H A DByteCodeStmtGen.h56 bool visitCompoundStmt(const CompoundStmt *S);
/openbsd-src/gnu/llvm/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 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()
186 void StmtPrinter::PrintFPPragmas(CompoundStmt *S) { in PrintFPPragmas()
265 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) { in VisitCompoundStmt()
327 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
340 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
383 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
582 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
[all …]
/openbsd-src/gnu/llvm/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.cpp595 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
629 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
636 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
646 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/
H A DCloneDetection.h27 class CompoundStmt; variable
61 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp31 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/openbsd-src/gnu/llvm/clang/docs/
H A DClangCheck.rst27 (CompoundStmt 0x7ff3a302aa10 <line:1:10, line:3:1>
/openbsd-src/gnu/llvm/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp277 const CompoundStmt &CS) { in getStatementsRange()
284 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/openbsd-src/gnu/llvm/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp396 if (!isa<CompoundStmt>(CodeRangeStmt)) { in create()
436 IsPrevCompound = Node.get<CompoundStmt>() != nullptr; in isInFunctionLikeBodyOfCode()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaAvailability.cpp634 const CompoundStmt *Scope) { in findLastStmtThatUsesDecl()
784 const CompoundStmt *Scope = nullptr; in DiagnoseDeclAvailability()
786 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in DiagnoseDeclAvailability()
H A DHLSLExternalSemaSource.cpp201 CompoundStmt::Create(AST, {Assign}, FPOptionsOverride(), in addDefaultHandleConstructor()
283 MethodDecl->setBody(CompoundStmt::Create(AST, {Return}, FPOptionsOverride(), in addArraySubscriptOperator()

1234