Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DUnwrappedLineFormatter.cpp295 unsigned NumStmts = 0; in tryMergeShortCaseLabels() local
298 for (; NumStmts < 3; ++NumStmts) { in tryMergeShortCaseLabels()
299 if (I + 1 + NumStmts == E) in tryMergeShortCaseLabels()
301 const AnnotatedLine *Line = I[1 + NumStmts]; in tryMergeShortCaseLabels()
310 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
312 if (NumStmts == 0 || NumStmts == 3 || Length > Limit) in tryMergeShortCaseLabels()
314 return NumStmts; in tryMergeShortCaseLabels()
/external/llvm-project/clang/lib/Format/
DUnwrappedLineFormatter.cpp468 unsigned NumStmts = 0; in tryMergeShortCaseLabels() local
473 for (; NumStmts < 3; ++NumStmts) { in tryMergeShortCaseLabels()
474 if (I + 1 + NumStmts == E) in tryMergeShortCaseLabels()
476 const AnnotatedLine *Line = I[1 + NumStmts]; in tryMergeShortCaseLabels()
488 SmallVectorImpl<AnnotatedLine *>::const_iterator J = I + 2 + NumStmts; in tryMergeShortCaseLabels()
502 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
504 if (NumStmts == 0 || NumStmts == 3 || Length > Limit) in tryMergeShortCaseLabels()
506 return NumStmts; in tryMergeShortCaseLabels()
/external/llvm-project/clang/lib/AST/
DStmt.cpp367 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
373 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
387 unsigned NumStmts) { in CreateEmpty() argument
389 C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt)); in CreateEmpty()
391 New->CompoundStmtBits.NumStmts = NumStmts; in CreateEmpty()
/external/clang/include/clang/AST/
DStmt.h93 unsigned NumStmts : 32 - NumStmtBits; in LLVM_ALIGNAS() local
564 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
570 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
575 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; } in body_empty()
576 unsigned size() const { return CompoundStmtBits.NumStmts; } in size()
638 return child_range(Body, Body + CompoundStmtBits.NumStmts); in children()
643 child_iterator(Body + CompoundStmtBits.NumStmts)); in children()
/external/clang/lib/AST/
DStmt.cpp285 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
286 assert(CompoundStmtBits.NumStmts == Stmts.size() && in CompoundStmt()
301 CompoundStmtBits.NumStmts = Stmts.size(); in setStmts()
302 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
/external/llvm-project/clang/include/clang/AST/
DStmt.h130 unsigned NumStmts : 32 - NumStmtBits; variable
1418 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
1423 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts);
1425 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; } in body_empty()
1426 unsigned size() const { return CompoundStmtBits.NumStmts; } in size()
/external/llvm-project/clang/lib/Serialization/
DASTReaderStmt.cpp155 unsigned NumStmts = Record.readInt(); in VisitCompoundStmt() local
156 while (NumStmts--) in VisitCompoundStmt()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp135 unsigned NumStmts = Record[Idx++]; in VisitCompoundStmt() local
136 while (NumStmts--) in VisitCompoundStmt()