Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineFormatter.cpp666 unsigned NumStmts = 0; in tryMergeShortCaseLabels() local
672 for (; NumStmts < 3; ++NumStmts) { in tryMergeShortCaseLabels()
673 if (I + 1 + NumStmts == E) in tryMergeShortCaseLabels()
675 const AnnotatedLine *Line = I[1 + NumStmts]; in tryMergeShortCaseLabels()
690 SmallVectorImpl<AnnotatedLine *>::const_iterator J = I + 2 + NumStmts; in tryMergeShortCaseLabels()
704 Length += I[1 + NumStmts]->Last->TotalLength + 1; // 1 for the space. in tryMergeShortCaseLabels()
706 if (NumStmts == 0 || NumStmts == 3 || Length > Limit) in tryMergeShortCaseLabels()
708 return NumStmts; in tryMergeShortCaseLabels()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp368 CompoundStmtBits.NumStmts = Stmts.size(); in CompoundStmt()
376 assert(CompoundStmtBits.NumStmts == Stmts.size() && in setStmts()
392 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C, unsigned NumStmts, in CreateEmpty() argument
395 totalSizeToAlloc<Stmt *, FPOptionsOverride>(NumStmts, HasFPFeatures), in CreateEmpty()
398 New->CompoundStmtBits.NumStmts = NumStmts; in CreateEmpty()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DStmt.h155 unsigned NumStmts; in alignas() local
1627 return CompoundStmtBits.NumStmts; in numTrailingObjects()
1640 CompoundStmtBits.NumStmts = 0; in CompoundStmt()
1645 static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts,
1648 bool body_empty() const { return CompoundStmtBits.NumStmts == 0; } in body_empty()
1649 unsigned size() const { return CompoundStmtBits.NumStmts; } in size()
/freebsd-14.2/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp156 unsigned NumStmts = Record.readInt(); in VisitCompoundStmt() local
159 while (NumStmts--) in VisitCompoundStmt()
2879 unsigned NumStmts = Record[ASTStmtReader::NumStmtFields]; in ReadStmtFromStream() local
2881 S = CompoundStmt::CreateEmpty(Context, NumStmts, HasFPFeatures); in ReadStmtFromStream()