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:
authorCampbell Barton <ideasman42@gmail.com>2021-06-23 04:44:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-23 04:48:08 +0300
commit0f427f4eb1c43b2e2336991de27f8985a4e0e824 (patch)
tree95ce6b5f72d5a3b069f3aa6bfd77ec3981ef3349 /source/blender/blenlib
parent58e58310b79861ff53c46a8717b85b5b04c37fe5 (diff)
Cleanup: suppress clang-tidy warnings
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/tests/BLI_string_test.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenlib/tests/BLI_string_test.cc b/source/blender/blenlib/tests/BLI_string_test.cc
index 88cecaa5fee..281b7103b75 100644
--- a/source/blender/blenlib/tests/BLI_string_test.cc
+++ b/source/blender/blenlib/tests/BLI_string_test.cc
@@ -832,6 +832,9 @@ class StringEscape : public testing::Test {
TEST_F(StringEscape, Simple)
{
+ /* NOTE: clang-tidy `modernize-raw-string-literal` is disabled as it causes errors with MSVC.
+ * TODO: investigate resolving with `/Zc:preprocessor` flag. */
+
const CompareWordsArray equal{
{"", ""},
{"/", "/"},
@@ -845,11 +848,16 @@ TEST_F(StringEscape, Simple)
{"\\A", "\\\\A"},
{"A\\B", "A\\\\B"},
{"?", "?"},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\"\\", "\\\"\\\\"},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\\\"", "\\\\\\\""},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\"\\\"", "\\\"\\\\\\\""},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\"\"\"", "\\\"\\\"\\\""},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\\\\\\", "\\\\\\\\\\\\"},
};
@@ -868,8 +876,11 @@ TEST_F(StringEscape, Control)
{"\f", "\\f"},
{"A\n", "A\\n"},
{"\nA", "\\nA"},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\n\r\t\a\b\f", "\\n\\r\\t\\a\\b\\f"},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\n_\r_\t_\a_\b_\f", "\\n_\\r_\\t_\\a_\\b_\\f"},
+ /* NOLINTNEXTLINE: modernize-raw-string-literal. */
{"\n\\\r\\\t\\\a\\\b\\\f", "\\n\\\\\\r\\\\\\t\\\\\\a\\\\\\b\\\\\\f"},
};