Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp714 unsigned NumStmts = 0; in tryMergeShortCaseLabels() local
720 for (; NumStmts < 3; ++NumStmts) { in tryMergeShortCaseLabels()
721 if (I + 1 + NumStmts == E) in tryMergeShortCaseLabels()
723 const AnnotatedLine *Line = I[1 + NumStmts]; in tryMergeShortCaseLabels()
738 const auto *J = I + 2 + NumStmts; in tryMergeShortCaseLabels()
752 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
754 if (NumStmts == 0 || NumStmts == 3 || Length > Limit) in tryMergeShortCaseLabels()
756 return NumStmts; in tryMergeShortCaseLabels()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp377 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
385 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
400 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty() argument
403 totalSizeToAlloc<Stmt *, FPOptionsOverride>(NumStmts, HasFPFeatures), in CreateEmpty()
406 New->CompoundStmtBits.NumStmts = NumStmts; in CreateEmpty()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h157 unsigned NumStmts;
1754 return CompoundStmtBits.NumStmts;
1767 CompoundStmtBits.NumStmts = 0;
1772 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1775 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; }
1776 unsigned size() const { return CompoundStmtBits.NumStmts; }
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp152 unsigned NumStmts = Record.readInt(); in VisitCompoundStmt() local
155 while (NumStmts--) in VisitCompoundStmt()
3055 unsigned NumStmts = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream() local
3057 S = CompoundStmt::CreateEmpty(Context, NumStmts, HasFPFeatures); in ReadStmtFromStream()