Skip to content

Commit b88993b

Browse files
committed
add comment + unreachable
1 parent 81a75cc commit b88993b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/errorlogger.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,7 @@ std::string getClassification(const std::string &guideline, ReportType reportTyp
948948
case ReportType::misraC2012:
949949
case ReportType::misraC2023:
950950
case ReportType::misraC2025:
951+
/* NOTE: If you add another report type here, remember to update the inner switch as well. */
951952
{
952953
const bool isDirective = guideline.rfind("Dir ", 0) == 0;
953954

@@ -971,6 +972,7 @@ std::string getClassification(const std::string &guideline, ReportType reportTyp
971972
info = isDirective ? &checkers::misraC2025Directives : &checkers::misraC2025Rules;
972973
break;
973974
default:
975+
cppcheck::unreachable();
974976
break;
975977
}
976978

0 commit comments

Comments
 (0)