Home
last modified time | relevance | path

Searched refs:Stmts (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtObjC.cpp36 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() local
37 Stmts[0] = atTryStmt; in ObjCAtTryStmt()
39 Stmts[I + 1] = CatchStmts[I]; in ObjCAtTryStmt()
42 Stmts[NumCatchStmts + 1] = atFinallyStmt; in ObjCAtTryStmt()
H A DStmtCXX.cpp43 Stmt **Stmts = getStmts(); in CXXTryStmt() local
44 Stmts[0] = tryBlock; in CXXTryStmt()
45 llvm::copy(handlers, Stmts + 1); in CXXTryStmt()
H A DStmt.cpp374 CompoundStmt::CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures, in CompoundStmt() argument
377 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
379 setStmts(Stmts); in CompoundStmt()
384 void CompoundStmt::setStmts(ArrayRef<Stmt *> Stmts) { in setStmts() argument
385 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
387 llvm::copy(Stmts, body_begin()); in setStmts()
390 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts, in Create() argument
395 Stmts.size(), FPFeatures.requiresTrailingStorage()), in Create()
397 return new (Mem) CompoundStmt(Stmts, FPFeatures, LB, RB); in Create()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp45 StmtVector Stmts; in ParseStatement() local
47 Res = ParseStatementOrDeclaration(Stmts, StmtCtx, TrailingElseLoc); in ParseStatement()
54 Parser::ParseStatementOrDeclaration(StmtVector &Stmts, in ParseStatementOrDeclaration() argument
76 Stmts, StmtCtx, TrailingElseLoc, CXX11Attrs, GNUOrMSAttrs); in ParseStatementOrDeclaration()
131 StmtVector &Stmts, ParsedStmtContext StmtCtx, in ParseStatementOrDeclarationAfterAttributes() argument
335 ParseMicrosoftIfExistsStatement(Stmts); in ParseStatementOrDeclarationAfterAttributes()
486 return ParsePragmaLoopHint(Stmts, StmtCtx, TrailingElseLoc, CXX11Attrs); in ParseStatementOrDeclarationAfterAttributes()
715 StmtVector Stmts; in ParseLabeledStatement() local
718 Stmts, StmtCtx, nullptr, EmptyCXX11Attrs, TempAttrs); in ParseLabeledStatement()
1045 bool Parser::ConsumeNullStmt(StmtVector &Stmts) { in ConsumeNullStmt() argument
[all …]
H A DParseDecl.cpp5692 Parser::StmtVector Stmts; in ParseTopLevelStmtDecl() local
5697 StmtResult R = ParseStatementOrDeclaration(Stmts, SubStmtCtx); in ParseTopLevelStmtDecl()
5713 for (Stmt *S : Stmts) { in ParseTopLevelStmtDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DBodyFarm.cpp137 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound() argument
138 return CompoundStmt::Create(C, Stmts, FPOptionsOverride(), SourceLocation(), in makeCompound()
566 Stmt *Stmts[] = { B, CE }; in create_dispatch_once() local
567 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
668 Stmt *Stmts[2]; in create_OSAtomicCompareAndSwap() local
669 Stmts[0] = in create_OSAtomicCompareAndSwap()
680 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
681 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
H A DCFG.cpp5780 SmallVector<const Stmt *, 3> Stmts; in print_construction_context() local
5793 Stmts.push_back(CICC->getCXXBindTemporaryExpr()); in print_construction_context()
5798 Stmts.push_back(SDSCC->getDeclStmt()); in print_construction_context()
5803 Stmts.push_back(CDSCC->getDeclStmt()); in print_construction_context()
5804 Stmts.push_back(CDSCC->getCXXBindTemporaryExpr()); in print_construction_context()
5809 Stmts.push_back(NECC->getCXXNewExpr()); in print_construction_context()
5814 Stmts.push_back(RSCC->getReturnStmt()); in print_construction_context()
5820 Stmts.push_back(RSCC->getReturnStmt()); in print_construction_context()
5821 Stmts.push_back(RSCC->getCXXBindTemporaryExpr()); in print_construction_context()
5826 Stmts.push_back(TOCC->getCXXBindTemporaryExpr()); in print_construction_context()
[all …]
H A DUnsafeBufferUsage.cpp4276 SmallVector<Stmt *> Stmts; in checkUnsafeBufferUsage() local
4296 Stmts.push_back(FD->getBody()); in checkUnsafeBufferUsage()
4300 Stmts.push_back(CI->getInit()); in checkUnsafeBufferUsage()
4304 Stmts.push_back(D->getBody()); in checkUnsafeBufferUsage()
4307 assert(!Stmts.empty()); in checkUnsafeBufferUsage()
4312 for (Stmt *S : Stmts) { in checkUnsafeBufferUsage()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DScopeInfo.h93 llvm::TinyPtrVector<const Stmt*> Stmts; variable
96 ArrayRef<const Stmt *> Stmts) in PossiblyUnreachableDiag() argument
97 : PD(PD), Loc(Loc), Stmts(Stmts) {} in PossiblyUnreachableDiag()
H A DSema.h7099 bool DiagIfReachable(SourceLocation Loc, ArrayRef<const Stmt *> Stmts,
7113 bool DiagRuntimeBehavior(SourceLocation Loc, ArrayRef<const Stmt *> Stmts,
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmtDataCollectors.td112 //--- C++ OOP Stmts ------------------------------------------------------//
183 //--- Miscellaneous Stmts ------------------------------------------------//
H A DStmt.h1741 CompoundStmt(ArrayRef<Stmt *> Stmts, FPOptionsOverride FPFeatures,
1745 void setStmts(ArrayRef<Stmt *> Stmts);
1758 static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp116 SmallVector<Stmt *, 32> Stmts; member in __anonb8493dda0111::RewriteObjC
1416 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1433 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1480 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt()
1481 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1637 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
4524 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
4536 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4538 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4666 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
H A DRewriteModernObjC.cpp126 SmallVector<Stmt *, 32> Stmts; member in __anonc09f721f0111::RewriteModernObjC
1608 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1638 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1685 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt()
1686 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1845 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
5383 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
5395 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5397 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5545 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h7270 ParseStatementOrDeclaration(StmtVector &Stmts, ParsedStmtContext StmtCtx,
7274 StmtVector &Stmts, ParsedStmtContext StmtCtx,
7352 bool ConsumeNullStmt(StmtVector &Stmts);
7487 StmtResult ParsePragmaLoopHint(StmtVector &Stmts, ParsedStmtContext StmtCtx,
7491 void ParseMicrosoftIfExistsStatement(StmtVector &Stmts);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaDeclCXX.cpp8463 llvm::SmallVector<Stmt*, 16> Stmts; member
8469 Stmts.push_back(S.get()); in add()
8498 StmtListResult Stmts = visit(); in build() local
8499 if (Stmts.IsInvalid) in build()
8516 auto OldStmts = std::move(Stmts.Stmts); in build()
8517 Stmts.Stmts.clear(); in build()
8523 if (RetVal.isUnset() && Stmts.Stmts.empty()) in build()
8526 else if (Stmts.add(buildIfNotCondReturnFalse(Prior))) in build()
8536 if (FinishCmp() || Stmts.add(EAsStmt)) in build()
8551 std::reverse(Stmts.Stmts.begin(), Stmts.Stmts.end()); in build()
[all …]
H A DAnalysisBasedWarnings.cpp2923 for (const Stmt *S : D.Stmts) in IssueWarnings()
2931 for (const Stmt *S : D.Stmts) { in IssueWarnings()
H A DSemaExpr.cpp20409 bool Sema::DiagIfReachable(SourceLocation Loc, ArrayRef<const Stmt *> Stmts, in DiagIfReachable() argument
20411 if (!Stmts.empty() && getCurFunctionOrMethodDecl()) { in DiagIfReachable()
20414 sema::PossiblyUnreachableDiag(PD, Loc, Stmts)); in DiagIfReachable()
20452 bool Sema::DiagRuntimeBehavior(SourceLocation Loc, ArrayRef<const Stmt*> Stmts, in DiagRuntimeBehavior() argument
20473 return DiagIfReachable(Loc, Stmts, PD); in DiagRuntimeBehavior()
H A DSemaOpenMP.cpp9588 SmallVector<Stmt *> Stmts; in buildPreInits() local
9590 appendFlattenedStmtList(Stmts, S); in buildPreInits()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp151 SmallVector<Stmt *, 16> Stmts; in VisitCompoundStmt() local
156 Stmts.push_back(Record.readSubStmt()); in VisitCompoundStmt()
157 S->setStmts(Stmts); in VisitCompoundStmt()
1417 Stmt **Stmts = E->getTrailingObjects<Stmt *>(); in VisitGenericSelectionExpr() local
1422 Stmts[I] = Record.readSubExpr(); in VisitGenericSelectionExpr()
H A DASTWriterStmt.cpp1366 Stmt **Stmts = E->getTrailingObjects<Stmt *>(); in VisitGenericSelectionExpr() local
1371 Record.AddStmt(Stmts[I]); in VisitGenericSelectionExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DAttr.td80 // Decls and Stmts are possibly AttrSubjects (even though the syntax may not