From b9cd2f4531ca670c196b0b14b1359d0f375103c2 Mon Sep 17 00:00:00 2001 From: Howard Trickey Date: Mon, 8 Mar 2021 06:45:45 -0500 Subject: Revert "Fix modernize-raw-string-literal complaints from clang-tidy." This reverts commit 7a34bd7c2886dfc812345c0b1649d63a9ee4666f. Broke windows build. Can apparently fix with /Zc:preprocessor flag for windows but need a Windows dev to make that fix. --- source/blender/blenlib/tests/BLI_string_test.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/blenlib/tests/BLI_string_test.cc') diff --git a/source/blender/blenlib/tests/BLI_string_test.cc b/source/blender/blenlib/tests/BLI_string_test.cc index 3f7db261ac0..88cecaa5fee 100644 --- a/source/blender/blenlib/tests/BLI_string_test.cc +++ b/source/blender/blenlib/tests/BLI_string_test.cc @@ -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", 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)"}, + {"\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"}, }; testEscapeWords(escaped); -- cgit v1.2.3