Home
last modified time | relevance | path

Searched refs:NumStmts (Results 1 – 3 of 3) sorted by relevance

/external/clang/lib/AST/
DStmt.cpp248 CompoundStmt::CompoundStmt(ASTContext &C, Stmt **StmtStart, unsigned NumStmts, in CompoundStmt() argument
251 CompoundStmtBits.NumStmts = NumStmts; in CompoundStmt()
252 assert(CompoundStmtBits.NumStmts == NumStmts && in CompoundStmt()
255 if (NumStmts == 0) { in CompoundStmt()
260 Body = new (C) Stmt*[NumStmts]; in CompoundStmt()
261 memcpy(Body, StmtStart, NumStmts * sizeof(*Body)); in CompoundStmt()
264 void CompoundStmt::setStmts(ASTContext &C, Stmt **Stmts, unsigned NumStmts) { in setStmts() argument
267 this->CompoundStmtBits.NumStmts = NumStmts; in setStmts()
269 Body = new (C) Stmt*[NumStmts]; in setStmts()
270 memcpy(Body, Stmts, sizeof(Stmt *) * NumStmts); in setStmts()
/external/clang/include/clang/AST/
DStmt.h132 unsigned NumStmts : 32 - NumStmtBits; variable
552 CompoundStmt(ASTContext &C, Stmt **StmtStart, unsigned NumStmts,
558 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
564 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
567 void setStmts(ASTContext &C, Stmt **Stmts, unsigned NumStmts);
569 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; } in body_empty()
570 unsigned size() const { return CompoundStmtBits.NumStmts; } in size()
622 return child_range(&Body[0], &Body[0]+CompoundStmtBits.NumStmts); in children()
626 return child_range(&Body[0], &Body[0]+CompoundStmtBits.NumStmts); in children()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp124 unsigned NumStmts = Record[Idx++]; in VisitCompoundStmt() local
125 while (NumStmts--) in VisitCompoundStmt()