Home
last modified time | relevance | path

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

1234

/netbsd-src/external/apache2/llvm/dist/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()
H A DCheckSecuritySyntaxOnly.cpp90 void VisitCompoundStmt (CompoundStmt *S);
204 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/netbsd-src/external/apache2/llvm/dist/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;
295 void handlePoolScope(PoolScope &scope, CompoundStmt *compoundS) { in handlePoolScope()
H A DTransforms.cpp247 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
248 for (CompoundStmt::body_iterator in TraverseStmtExpr()
257 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp116 return visitCompoundStmt(cast<CompoundStmt>(S)); in visitStmt()
135 const CompoundStmt *CompoundStmt) { in visitCompoundStmt() argument
137 for (auto *InnerStmt : CompoundStmt->body()) in visitCompoundStmt()
H A DByteCodeStmtGen.h61 bool visitCompoundStmt(const CompoundStmt *S);
/netbsd-src/external/apache2/llvm/dist/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.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()
H A DStmt.h126 friend class CompoundStmt; variable
1398 class CompoundStmt final : public Stmt,
1399 private llvm::TrailingObjects<CompoundStmt, Stmt *> {
1406 CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, SourceLocation RB);
1407 explicit CompoundStmt(EmptyShell Empty) : Stmt(CompoundStmtClass, Empty) {} in CompoundStmt() function
1412 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1416 explicit CompoundStmt(SourceLocation Loc) in CompoundStmt() function
1423 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts);
1499 return const_cast<CompoundStmt *>(this)->getStmtExprResult(); in getStmtExprResult()
3327 CompoundStmt *getBlock() const { in getBlock()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DStmt.cpp203 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
364 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, in CompoundStmt() function in CompoundStmt
372 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
379 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
382 C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt)); in Create()
383 return new (Mem) CompoundStmt(Stmts, LB, RB); in Create()
386 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, in CreateEmpty()
389 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
390 CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell()); in CreateEmpty()
H A DStmtPrinter.cpp110 if (auto *CS = dyn_cast<CompoundStmt>(S)) { in PrintControlledStmt()
120 void PrintRawCompoundStmt(CompoundStmt *S);
174 void StmtPrinter::PrintRawCompoundStmt(CompoundStmt *Node) { in PrintRawCompoundStmt()
201 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) { in VisitCompoundStmt()
247 if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) { in PrintRawIfStmt()
260 if (auto *CS = dyn_cast<CompoundStmt>(Else)) { in PrintRawIfStmt()
303 if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) { in VisitDoStmt()
502 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
515 if (auto *CS = dyn_cast<CompoundStmt>(catchStmt->getCatchBody())) { in VisitObjCAtTryStmt()
523 PrintRawCompoundStmt(dyn_cast<CompoundStmt>(FS->getFinallyBody())); in VisitObjCAtTryStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
257 auto CS = dyn_cast<CompoundStmt>(S); in saveHash()
H A DBodyFarm.cpp61 CompoundStmt *makeCompound(ArrayRef<Stmt*>);
132 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound()
133 return CompoundStmt::Create(C, Stmts, SourceLocation(), SourceLocation()); in makeCompound()
536 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
651 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
H A DCFG.cpp550 CFGBlock *VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed);
1944 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in addLocalScopeForStmt()
2173 return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed); in Visit()
2707 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed) { in VisitCompoundStmt()
2719 for (CompoundStmt::reverse_body_iterator I=C->body_rbegin(), E=C->body_rend(); in VisitCompoundStmt()
2995 if (!isa<CompoundStmt>(Else)) in VisitIfStmt()
3018 if (!isa<CompoundStmt>(Then)) in VisitIfStmt()
3408 if (!isa<CompoundStmt>(F->getBody())) in VisitForStmt()
3748 if (!isa<CompoundStmt>(W->getBody())) in VisitWhileStmt()
3947 if (!isa<CompoundStmt>(D->getBody())) in VisitDoStmt()
[all …]
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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/
H A DCloneDetection.h27 class CompoundStmt; variable
61 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
H A DPathDiagnostic.h295 static PathDiagnosticLocation createBeginBrace(const CompoundStmt *CS,
300 static PathDiagnosticLocation createEndBrace(const CompoundStmt *CS,
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp30 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DClangCheck.rst27 (CompoundStmt 0x7ff3a302aa10 <line:1:10, line:3:1>
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DRangeSelector.cpp277 const CompoundStmt &CS) { in getStatementsRange()
284 return RelativeSelector<CompoundStmt, getStatementsRange>(std::move(ID)); in statements()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp395 if (!isa<CompoundStmt>(CodeRangeStmt)) { in create()
435 IsPrevCompound = Node.get<CompoundStmt>() != nullptr; in isInFunctionLikeBodyOfCode()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaAvailability.cpp630 const CompoundStmt *Scope) { in findLastStmtThatUsesDecl()
794 const CompoundStmt *Scope = nullptr; in DiagnoseDeclAvailability()
796 if (const auto *CS = dyn_cast<CompoundStmt>(S)) { in DiagnoseDeclAvailability()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGStmt.cpp400 EmitCompoundStmt(cast<CompoundStmt>(*S)); in EmitSimpleStmt()
436 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
448 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S, in EmitCompoundStmtWithoutScope()
1562 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in CollectStatementsForCase()
1565 CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end(); in CollectStatementsForCase()

1234