Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2021-03-08 14:45:45 +0300
committerHoward Trickey <howard.trickey@gmail.com>2021-03-08 14:45:45 +0300
commitb9cd2f4531ca670c196b0b14b1359d0f375103c2 (patch)
treee31e315436ca596c3bdedab5a5d8a96b7c011439 /source/blender/blenlib/tests/BLI_string_test.cc
parente9e53ff3a6a4a73efe4777551d0cc552a0ea76d4 (diff)
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.
Diffstat (limited to 'source/blender/blenlib/tests/BLI_string_test.cc')
-rw-r--r--source/blender/blenlib/tests/BLI_string_test.cc16
1 files changed, 8 insertions, 8 deletions
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);