Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp116 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
162 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) { in VisitIfStmt()
166 if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt2)) { in VisitIfStmt()
432 const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1); in isIdenticalStmt()
433 const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2); in isIdenticalStmt()
438 CompoundStmt::const_body_iterator I1 = CompStmt1->body_begin(); in isIdenticalStmt()
439 CompoundStmt::const_body_iterator I2 = CompStmt2->body_begin(); in isIdenticalStmt()
H A DCheckSecuritySyntaxOnly.cpp86 void VisitCompoundStmt (CompoundStmt *S);
174 void WalkAST::VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp89 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
156 CompoundStmt *S = E->getSubStmt(); in TraverseStmtExpr()
157 for (CompoundStmt::body_iterator in TraverseStmtExpr()
166 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
186 static bool isBodyEmpty(CompoundStmt *body, ASTContext &Ctx, in isBodyEmpty()
H A DTransAutoreleasePool.cpp164 bool VisitCompoundStmt(CompoundStmt *S) { in VisitCompoundStmt()
227 CompoundStmt *CompoundParent;
296 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()
H A DTransRetainReleaseDealloc.cpp359 auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin()); in checkForGCDOrXPC()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtCXX.h96 CompoundStmt *getTryBlock() { in getTryBlock()
97 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
99 const CompoundStmt *getTryBlock() const { in getTryBlock()
100 return cast<CompoundStmt>(getStmts()[0]); in getTryBlock()
255 CompoundStmt *SubStmt) in MSDependentExistsStmt()
281 CompoundStmt *getSubStmt() const { in getSubStmt()
282 return reinterpret_cast<CompoundStmt *>(SubStmt); in getSubStmt()
H A DStmtObjC.h282 const CompoundStmt *getSynchBody() const { in getSynchBody()
283 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
285 CompoundStmt *getSynchBody() { in getSynchBody()
286 return reinterpret_cast<CompoundStmt*>(SubStmts[SYNC_BODY]); in getSynchBody()
H A DStmt.h122 friend class CompoundStmt; in alignas() local
1241 class CompoundStmt final : public Stmt,
1249 CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, SourceLocation RB);
1255 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
1259 explicit CompoundStmt(SourceLocation Loc) in CompoundStmt() function
1266 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts);
2977 CompoundStmt *getBlock() const { in getBlock()
2978 return cast<CompoundStmt>(Children[BLOCK]); in getBlock()
3010 CompoundStmt *getBlock() const { return cast<CompoundStmt>(Block); } in getBlock()
3050 CompoundStmt* getTryBlock() const { in getTryBlock()
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DASTStructExtractor.cpp56 CompoundStmt *body_compound_stmt = dyn_cast<CompoundStmt>(body_stmt); in ExtractFromFunctionDecl()
65 for (CompoundStmt::const_body_iterator bi = body_compound_stmt->body_begin(), in ExtractFromFunctionDecl()
H A DASTResultSynthesizer.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()
H A DASTResultSynthesizer.h163 bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC);
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DStmt.cpp155 else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) { in IgnoreContainers()
317 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, SourceLocation LB, in CompoundStmt() function in CompoundStmt
325 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts()
332 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create()
335 C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt)); in Create()
336 return new (Mem) CompoundStmt(Stmts, LB, RB); in Create()
339 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, in CreateEmpty()
342 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
343 CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell()); in CreateEmpty()
H A DStmtPrinter.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()
492 if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) { in VisitObjCAtTryStmt()
549 PrintRawCompoundStmt(dyn_cast<CompoundStmt>(Node->getSubStmt())); in VisitObjCAutoreleasePoolStmt()
560 PrintRawCompoundStmt(cast<CompoundStmt>(Node->getHandlerBlock())); in PrintRawCXXCatchStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/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()
258 auto CS = dyn_cast<CompoundStmt>(S); in saveHash()
H A DBodyFarm.cpp62 CompoundStmt *makeCompound(ArrayRef<Stmt*>);
135 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound()
136 return CompoundStmt::Create(C, Stmts, SourceLocation(), SourceLocation()); in makeCompound()
537 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
650 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
H A DCFG.cpp528 CFGBlock *VisitCompoundStmt(CompoundStmt *C);
1820 if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in addLocalScopeForStmt()
2034 return VisitCompoundStmt(cast<CompoundStmt>(S)); in Visit()
2537 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C) { in VisitCompoundStmt()
2799 if (!isa<CompoundStmt>(Else)) in VisitIfStmt()
2822 if (!isa<CompoundStmt>(Then)) in VisitIfStmt()
3182 if (!isa<CompoundStmt>(F->getBody())) in VisitForStmt()
3522 if (!isa<CompoundStmt>(W->getBody())) in VisitWhileStmt()
3721 if (!isa<CompoundStmt>(D->getBody())) in VisitDoStmt()
3877 if (!isa<CompoundStmt>(Terminator->getBody())) in VisitSwitchStmt()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Analysis/
H A DCloneDetection.h28 class CompoundStmt; variable
62 StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/Extract/
H A DSourceExtraction.cpp31 if (isa<CompoundStmt>(S)) in isSemicolonRequiredAfter()
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Core/
H A DClangForward.h33 class CompoundStmt; variable
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Refactoring/
H A DASTSelection.cpp397 if (!isa<CompoundStmt>(CodeRangeStmt)) { in create()
437 IsPrevCompound = Node.get<CompoundStmt>() != nullptr; in isInFunctionLikeBodyOfCode()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGStmt.cpp351 case Stmt::CompoundStmtClass: EmitCompoundStmt(cast<CompoundStmt>(*S)); break; in EmitSimpleStmt()
370 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast, in EmitCompoundStmt()
382 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S, in EmitCompoundStmtWithoutScope()
386 for (CompoundStmt::const_body_iterator I = S.body_begin(), in EmitCompoundStmtWithoutScope()
1374 if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) { in CollectStatementsForCase()
1377 CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end(); in CollectStatementsForCase()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DPathDiagnostic.cpp653 if (const auto *CS = dyn_cast<CompoundStmt>(S)) in createEnd()
679 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS, in createBeginBrace()
686 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS, in createEndBrace()
696 if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) in createDeclBegin()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DPathDiagnostic.h255 static PathDiagnosticLocation createBeginBrace(const CompoundStmt *CS,
260 static PathDiagnosticLocation createEndBrace(const CompoundStmt *CS,
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2037 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CompoundStmt>
4242 AST_POLYMORPHIC_SUPPORTED_TYPES(CompoundStmt, in AST_POLYMORPHIC_MATCHER_P() argument
4245 const CompoundStmt *CS = CompoundStmtMatcher<NodeType>::get(Node); in AST_POLYMORPHIC_MATCHER_P()
4260 AST_MATCHER_P(CompoundStmt, statementCountIs, unsigned, N) { in AST_MATCHER_P() argument

123