Update Clang GSL_SUPPRESS to stringize parameter instead of using fixed string literal. (#1133)

Fix #1130.
This commit is contained in:
Edward Chen authored and GitHub committed 2023-09-11 10:52:30 -07:00
1 parent 2940006b5c
commit 52212c2d76
3 files changed
+1 -18

No files matched your search

-3
View File
@@ -37,9 +37,6 @@ TEST(byte_tests, construction)
EXPECT_TRUE(static_cast<unsigned char>(b) == 4);
}
// clang-format off
GSL_SUPPRESS(es.49)
// clang-format on
{
const byte b = byte(12);
EXPECT_TRUE(static_cast<unsigned char>(b) == 12);