Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DStmtObjC.cpp37 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() local
38 Stmts[0] = atTryStmt; in ObjCAtTryStmt()
40 Stmts[I + 1] = CatchStmts[I]; in ObjCAtTryStmt()
43 Stmts[NumCatchStmts + 1] = atFinallyStmt; in ObjCAtTryStmt()
DStmtCXX.cpp47 Stmt **Stmts = reinterpret_cast<Stmt **>(this + 1); in CXXTryStmt() local
48 Stmts[0] = tryBlock; in CXXTryStmt()
49 std::copy(handlers.begin(), handlers.end(), Stmts + 1); in CXXTryStmt()
DStmt.cpp282 CompoundStmt::CompoundStmt(const ASTContext &C, ArrayRef<Stmt*> Stmts, in CompoundStmt() argument
285 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
286 assert(CompoundStmtBits.NumStmts == Stmts.size() && in CompoundStmt()
289 if (Stmts.size() == 0) { in CompoundStmt()
294 Body = new (C) Stmt*[Stmts.size()]; in CompoundStmt()
295 std::copy(Stmts.begin(), Stmts.end(), Body); in CompoundStmt()
298 void CompoundStmt::setStmts(const ASTContext &C, ArrayRef<Stmt *> Stmts) { in setStmts() argument
301 CompoundStmtBits.NumStmts = Stmts.size(); in setStmts()
302 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
305 Body = new (C) Stmt*[Stmts.size()]; in setStmts()
[all …]
/external/clang/lib/Analysis/
DBodyFarm.cpp105 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound() argument
106 return new (C) CompoundStmt(C, Stmts, SourceLocation(), SourceLocation()); in makeCompound()
224 Stmt *Stmts[] = { B, CE }; in create_dispatch_once() local
225 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once()
324 Stmt *Stmts[2]; in create_OSAtomicCompareAndSwap() local
325 Stmts[0] = in create_OSAtomicCompareAndSwap()
336 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap()
337 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
/external/clang/lib/Parse/
DParseStmt.cpp42 StmtVector Stmts; in ParseStatement() local
44 Stmts, AllowOpenMPStandalone ? ACK_StatementsOpenMPAnyExecutable in ParseStatement()
102 Parser::ParseStatementOrDeclaration(StmtVector &Stmts, in ParseStatementOrDeclaration() argument
114 Stmts, Allowed, TrailingElseLoc, Attrs); in ParseStatementOrDeclaration()
155 Parser::ParseStatementOrDeclarationAfterAttributes(StmtVector &Stmts, in ParseStatementOrDeclarationAfterAttributes() argument
288 ParseMicrosoftIfExistsStatement(Stmts); in ParseStatementOrDeclarationAfterAttributes()
376 return ParsePragmaLoopHint(Stmts, Allowed, TrailingElseLoc, Attrs); in ParseStatementOrDeclarationAfterAttributes()
592 StmtVector Stmts; in ParseLabeledStatement() local
598 Stmts, /*Allowed=*/ACK_StatementsOpenMPNonStandalone, nullptr, in ParseLabeledStatement()
946 StmtVector Stmts; in ParseCompoundStatementBody() local
[all …]
/external/clang/utils/TableGen/
DClangASTNodesEmitter.cpp155 const std::vector<Record*> Stmts in run() local
160 for (unsigned i = 0, e = Stmts.size(); i != e; ++i) { in run()
161 Record *R = Stmts[i]; in run()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-rc/
DResourceScriptStmt.h235 OptStatementsRCResource(OptionalStmtList &&Stmts,
238 OptStatements(llvm::make_unique<OptionalStmtList>(std::move(Stmts))) {} in RCResource()
697 std::vector<std::unique_ptr<VersionInfoStmt>> Stmts;
702 Stmts.push_back(std::move(Stmt)); in addStmt()
DResourceScriptStmt.cpp174 for (auto &Stmt : Stmts) in log()
DResourceFileWriter.cpp1342 for (const std::unique_ptr<VersionInfoStmt> &Item : Blk.Stmts) { in writeVersionInfoBlock()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp115 SmallVector<Stmt *, 32> Stmts; member in __anoncc552ea70111::RewriteObjC
1409 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1426 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1473 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt()
1474 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1630 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
4547 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
4559 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4561 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
4689 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
DRewriteModernObjC.cpp124 SmallVector<Stmt *, 32> Stmts; member in __anonae4208ac0111::RewriteModernObjC
1602 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt()
1632 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt()
1679 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt()
1680 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt()
1839 Stmts.pop_back(); in RewriteObjCForCollectionStmt()
5432 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader()
5444 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5446 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer()
5594 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer()
[all …]
/external/clang/include/clang/Parse/
DParser.h1677 ParseStatementOrDeclaration(StmtVector &Stmts, AllowedContsructsKind Allowed,
1680 StmtVector &Stmts,
1709 StmtResult ParsePragmaLoopHint(StmtVector &Stmts,
1747 void ParseMicrosoftIfExistsStatement(StmtVector &Stmts);
/external/clang/include/clang/AST/
DStmt.h558 CompoundStmt(const ASTContext &C, ArrayRef<Stmt*> Stmts,
573 void setStmts(const ASTContext &C, ArrayRef<Stmt *> Stmts);
/external/clang/lib/Serialization/
DASTReaderStmt.cpp134 SmallVector<Stmt *, 16> Stmts; in VisitCompoundStmt() local
137 Stmts.push_back(Reader.ReadSubStmt()); in VisitCompoundStmt()
138 S->setStmts(Reader.getContext(), Stmts); in VisitCompoundStmt()
/external/clang/include/clang/Basic/
DAttr.td60 // Decls and Stmts are possibly AttrSubjects (even though the syntax may not