/external/clang/lib/Analysis/ |
D | BodyFarm.cpp | 108 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) { in makeCompound() argument 109 return new (C) CompoundStmt(C, Stmts, SourceLocation(), SourceLocation()); in makeCompound() 227 Stmt *Stmts[] = { B, CE }; in create_dispatch_once() local 228 CompoundStmt *CS = M.makeCompound(Stmts); in create_dispatch_once() 326 Stmt *Stmts[2]; in create_OSAtomicCompareAndSwap() local 327 Stmts[0] = in create_OSAtomicCompareAndSwap() 338 Stmts[1] = M.makeReturn(RetVal); in create_OSAtomicCompareAndSwap() 339 CompoundStmt *Body = M.makeCompound(Stmts); in create_OSAtomicCompareAndSwap()
|
/external/clang/lib/Parse/ |
D | ParseStmt.cpp | 41 StmtVector Stmts; in ParseStatement() local 42 Res = ParseStatementOrDeclaration(Stmts, true, TrailingElseLoc); in ParseStatement() 98 Parser::ParseStatementOrDeclaration(StmtVector &Stmts, bool OnlyStatement, in ParseStatementOrDeclaration() argument 106 StmtResult Res = ParseStatementOrDeclarationAfterAttributes(Stmts, in ParseStatementOrDeclaration() 151 Parser::ParseStatementOrDeclarationAfterAttributes(StmtVector &Stmts, in ParseStatementOrDeclarationAfterAttributes() argument 279 ParseMicrosoftIfExistsStatement(Stmts); in ParseStatementOrDeclarationAfterAttributes() 362 return ParsePragmaLoopHint(Stmts, OnlyStatement, TrailingElseLoc, Attrs); in ParseStatementOrDeclarationAfterAttributes() 574 StmtVector Stmts; in ParseLabeledStatement() local 580 Stmts, /*OnlyStmts*/ true, nullptr, TempAttrs); in ParseLabeledStatement() 918 StmtVector Stmts; in ParseCompoundStatementBody() local [all …]
|
/external/clang/utils/TableGen/ |
D | ClangASTNodesEmitter.cpp | 155 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/clang/lib/AST/ |
D | Stmt.cpp | 281 CompoundStmt::CompoundStmt(const ASTContext &C, ArrayRef<Stmt*> Stmts, in CompoundStmt() argument 284 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt() 285 assert(CompoundStmtBits.NumStmts == Stmts.size() && in CompoundStmt() 288 if (Stmts.size() == 0) { in CompoundStmt() 293 Body = new (C) Stmt*[Stmts.size()]; in CompoundStmt() 294 std::copy(Stmts.begin(), Stmts.end(), Body); in CompoundStmt() 297 void CompoundStmt::setStmts(const ASTContext &C, Stmt **Stmts, in setStmts() argument 304 memcpy(Body, Stmts, sizeof(Stmt *) * NumStmts); in setStmts() 783 Stmt **Stmts = getStmts(); in ObjCAtTryStmt() local 784 Stmts[0] = atTryStmt; in ObjCAtTryStmt() [all …]
|
/external/clang/lib/Frontend/Rewrite/ |
D | RewriteObjC.cpp | 116 SmallVector<Stmt *, 32> Stmts; member in __anon84a5219c0111::RewriteObjC 1408 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt() 1425 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt() 1472 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt() 1473 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt() 1629 Stmts.pop_back(); in RewriteObjCForCollectionStmt() 4581 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader() 4593 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer() 4595 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer() 4724 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer() [all …]
|
D | RewriteModernObjC.cpp | 124 SmallVector<Stmt *, 32> Stmts; member in __anon5ebb9f610111::RewriteModernObjC 1628 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteBreakStmt() 1658 if (Stmts.empty() || !isa<ObjCForCollectionStmt>(Stmts.back())) in RewriteContinueStmt() 1705 assert(!Stmts.empty() && "ObjCForCollectionStmt - Statement stack empty"); in RewriteObjCForCollectionStmt() 1706 assert(isa<ObjCForCollectionStmt>(Stmts.back()) && in RewriteObjCForCollectionStmt() 1865 Stmts.pop_back(); in RewriteObjCForCollectionStmt() 5532 dyn_cast<ObjCForCollectionStmt>(Stmts.back())) in IsDeclStmtInForeachHeader() 5544 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer() 5546 Stmts.push_back(S); in RewriteFunctionBodyOrGlobalInitializer() 5695 if (Stmts.empty() || !IsDeclStmtInForeachHeader(DS)) in RewriteFunctionBodyOrGlobalInitializer() [all …]
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 1570 ParseStatementOrDeclaration(StmtVector &Stmts, bool OnlyStatement, 1573 StmtVector &Stmts, 1602 StmtResult ParsePragmaLoopHint(StmtVector &Stmts, bool OnlyStatement, 1639 void ParseMicrosoftIfExistsStatement(StmtVector &Stmts);
|
/external/clang/lib/Serialization/ |
D | ASTReaderStmt.cpp | 133 SmallVector<Stmt *, 16> Stmts; in VisitCompoundStmt() local 136 Stmts.push_back(Reader.ReadSubStmt()); in VisitCompoundStmt() 137 S->setStmts(Reader.getContext(), Stmts.data(), Stmts.size()); in VisitCompoundStmt()
|
/external/clang/include/clang/AST/ |
D | Stmt.h | 557 CompoundStmt(const ASTContext &C, ArrayRef<Stmt*> Stmts, 572 void setStmts(const ASTContext &C, Stmt **Stmts, unsigned NumStmts);
|
/external/clang/include/clang/Basic/ |
D | Attr.td | 60 // Decls and Stmts are possibly AttrSubjects (even though the syntax may not
|