Skip to content

Commit 30f8bc1

Browse files
committed
fix #13964
1 parent c707321 commit 30f8bc1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/errorlogger.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,12 +1045,9 @@ std::string getGuideline(const std::string &errId, ReportType reportType,
10451045
guideline = errId.substr(errId.rfind('-') + 1);
10461046
break;
10471047
case ReportType::misraCpp2008:
1048-
if (errId.rfind("misra-cpp-2008-", 0) == 0)
1049-
guideline = errId.substr(15);
1050-
break;
10511048
case ReportType::misraCpp2023:
1052-
if (errId.rfind("misra-cpp-2023-", 0) == 0)
1053-
guideline = errId.substr(15);
1049+
if (errId.rfind("misra-cpp-20-", 0) == 0 || errId.rfind("premium-misra-cpp-20", 0) == 0)
1050+
guideline = errId.substr(errId.rfind('-') + 1);
10541051
break;
10551052
default:
10561053
break;

0 commit comments

Comments
 (0)