Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp640 unsigned NumStmts = 0; in tryMergeShortCaseLabels() local
645 for (; NumStmts < 3; ++NumStmts) { in tryMergeShortCaseLabels()
646 if (I + 1 + NumStmts == E) in tryMergeShortCaseLabels()
648 const AnnotatedLine *Line = I[1 + NumStmts]; in tryMergeShortCaseLabels()
661 SmallVectorImpl<AnnotatedLine *>::const_iterator J = I + 2 + NumStmts; in tryMergeShortCaseLabels()
675 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
677 if (NumStmts == 0 || NumStmts == 3 || Length > Limit) in tryMergeShortCaseLabels()
679 return NumStmts; in tryMergeShortCaseLabels()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmt.cpp367 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
375 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
391 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty() argument
394 totalSizeToAlloc<Stmt *, FPOptionsOverride>(NumStmts, HasFPFeatures), in CreateEmpty()
397 New->CompoundStmtBits.NumStmts = NumStmts; in CreateEmpty()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h136 unsigned NumStmts; in alignas() local
1431 return CompoundStmtBits.NumStmts; in numTrailingObjects()
1442 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
1447 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1450 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; } in body_empty()
1451 unsigned size() const { return CompoundStmtBits.NumStmts; } in size()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderStmt.cpp154 unsigned NumStmts = Record.readInt(); in VisitCompoundStmt() local
157 while (NumStmts--) in VisitCompoundStmt()