Lines Matching refs:CaseCount
52 std::size_t CaseCount = 0; in countCaseLabels() local
57 ++CaseCount; in countCaseLabels()
64 return std::make_pair(CaseCount, HasDefault); in countCaseLabels()
129 const SwitchStmt *Switch, std::size_t CaseCount) { in handleSwitchWithDefault() argument
130 assert(CaseCount > 0 && "Switch statement with supposedly one default " in handleSwitchWithDefault()
132 if (CaseCount == 1 || CaseCount == 2) in handleSwitchWithDefault()
134 CaseCount == 1 in handleSwitchWithDefault()
140 const SwitchStmt *Switch, std::size_t CaseCount, in handleSwitchWithoutDefault() argument
154 assert(CaseCount > 0 && "Switch statement without any case found. This case " in handleSwitchWithoutDefault()
172 if (CaseCount < MaxPathsPossible) in handleSwitchWithoutDefault()
174 CaseCount == 1 ? "switch with only one case; use an if statement" in handleSwitchWithoutDefault()