You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Handle format string patterns first (before general single-quoted replacement)
225
-
result = std::regex_replace(result, std::regex(R"(%[a-zA-Z0-9]+)"), "format specifier");
226
-
227
-
// Handle specific casting patterns
228
-
result = std::regex_replace(
229
-
result,
230
-
std::regex(
231
-
R"(Casting between (?:(?:const\s+|unsigned\s+|signed\s+)*[a-zA-Z_][a-zA-Z0-9_]*\s*\*+\s*and\s*(?:const\s+|unsigned\s+|signed\s+)*[a-zA-Z_][a-zA-Z0-9_]*\s*\*+) which have)"),
232
-
"Casting between incompatible pointer types which have");
233
-
234
-
// Handle specific pointer type patterns (after casting patterns)
Copy file name to clipboardExpand all lines: test/testerrorlogger.cpp
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -506,7 +506,6 @@ class TestErrorLogger : public TestFixture {
506
506
"17 Programming error"
507
507
"17 Programming error"
508
508
"0 "
509
-
"17 Programming error"
510
509
"0 ", msg_str);
511
510
512
511
ErrorMessage msg2;
@@ -549,11 +548,9 @@ class TestErrorLogger : public TestFixture {
549
548
"1 0"
550
549
"0 "
551
550
"8 test.cpp"
552
-
"1 0"
553
551
"17 Programming error"
554
552
"17 Programming error"
555
553
"0 "
556
-
"17 Programming error"
557
554
"0 ";
558
555
ErrorMessage msg;
559
556
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid CWE ID - not an integer");
@@ -564,13 +561,12 @@ class TestErrorLogger : public TestFixture {
564
561
"5 error"
565
562
"1 0"
566
563
"7 invalid"// hash
564
+
"1 0"
567
565
"0 "
568
566
"8 test.cpp"
569
-
"1 0"
570
567
"17 Programming error"
571
568
"17 Programming error"
572
569
"0 "
573
-
"17 Programming error"
574
570
"0 ";
575
571
ErrorMessage msg;
576
572
ASSERT_THROW_INTERNAL_EQUALS(msg.deserialize(str), INTERNAL, "Internal Error: Deserialization of error message failed - invalid hash - not an integer");
@@ -608,7 +604,6 @@ class TestErrorLogger : public TestFixture {
608
604
"33 Illegal character in \"foo\\001bar\""
609
605
"33 Illegal character in \"foo\\001bar\""
610
606
"0 "
611
-
"29 Illegal character in \"string\""
612
607
"0 ", msg_str);
613
608
614
609
ErrorMessage msg2;
@@ -637,7 +632,6 @@ class TestErrorLogger : public TestFixture {
0 commit comments