Lines Matching defs:Switch
50 static std::pair<std::size_t, bool> countCaseLabels(const SwitchStmt *Switch) {
54 const SwitchCase *CurrentCase = Switch->getSwitchCaseList();
97 const auto *Switch = Result.Nodes.getNodeAs<SwitchStmt>("switch");
100 std::tie(SwitchCaseCount, SwitchHasDefault) = countCaseLabels(Switch);
105 handleSwitchWithDefault(Switch, SwitchCaseCount);
111 handleSwitchWithoutDefault(Switch, SwitchCaseCount, Result);
119 diag(Switch->getBeginLoc(),
127 const SwitchStmt *Switch, std::size_t CaseCount) {
128 assert(CaseCount > 0 && "Switch statement with supposedly one default "
131 diag(Switch->getBeginLoc(),
138 const SwitchStmt *Switch, std::size_t CaseCount,
152 assert(CaseCount > 0 && "Switch statement without any case found. This case "
171 diag(Switch->getBeginLoc(),