Fix modernize-raw-string-literal complaints from clang-tidy.

This commit is contained in:
2021-03-07 17:03:24 -05:00
parent 239a7d93ae
commit 7a34bd7c28
4 changed files with 38 additions and 40 deletions

View File

@@ -845,12 +845,12 @@ TEST_F(StringEscape, Simple)
{"\\A", "\\\\A"},
{"A\\B", "A\\\\B"},
{"?", "?"},
{"\"\\", "\\\"\\\\"},
{"\\\"", "\\\\\\\""},
{"\"\\\"", "\\\"\\\\\\\""},
{R"("\)", R"(\"\\)"},
{R"(\")", R"(\\\")"},
{R"("\")", R"(\"\\\")"},
{"\"\"\"", "\\\"\\\"\\\""},
{"\\\\\\", "\\\\\\\\\\\\"},
{R"(""")", R"(\"\"\")"},
{R"(\\\)", R"(\\\\\\)"},
};
testEscapeWords(equal);
@@ -868,9 +868,9 @@ TEST_F(StringEscape, Control)
{"\f", "\\f"},
{"A\n", "A\\n"},
{"\nA", "\\nA"},
{"\n\r\t\a\b\f", "\\n\\r\\t\\a\\b\\f"},
{"\n_\r_\t_\a_\b_\f", "\\n_\\r_\\t_\\a_\\b_\\f"},
{"\n\\\r\\\t\\\a\\\b\\\f", "\\n\\\\\\r\\\\\\t\\\\\\a\\\\\\b\\\\\\f"},
{"\n\r\t\a\b\f", R"(\n\r\t\a\b\f)"},
{"\n_\r_\t_\a_\b_\f", R"(\n_\r_\t_\a_\b_\f)"},
{"\n\\\r\\\t\\\a\\\b\\\f", R"(\n\\\r\\\t\\\a\\\b\\\f)"},
};
testEscapeWords(escaped);