[Bf-blender-cvs] [e03489c82ea] temp-clang-format: clang-format: disable for string test

Campbell Barton noreply at git.blender.org
Tue Apr 16 12:01:40 CEST 2019


Commit: e03489c82ead2616be22cea6e2bf5fcfca051d5a
Author: Campbell Barton
Date:   Tue Apr 16 12:01:21 2019 +0200
Branches: temp-clang-format
https://developer.blender.org/rBe03489c82ead2616be22cea6e2bf5fcfca051d5a

clang-format: disable for string test

===================================================================

M	tests/gtests/blenlib/BLI_string_utf8_test.cc

===================================================================

diff --git a/tests/gtests/blenlib/BLI_string_utf8_test.cc b/tests/gtests/blenlib/BLI_string_utf8_test.cc
index 89483d3d440..0dbe36158c5 100644
--- a/tests/gtests/blenlib/BLI_string_utf8_test.cc
+++ b/tests/gtests/blenlib/BLI_string_utf8_test.cc
@@ -35,6 +35,9 @@ int mk_wcswidth(const wchar_t *pwcs, size_t n)
 /* -------------------------------------------------------------------- */
 /* tests */
 
+/* Breaking strings is confusing here, prefer over-long lines. */
+/* clang-format off */
+
 /* Each test is made of a 79 bytes (80 with NULL char) string to test, expected string result after
  * stripping invalid utf8 bytes, and a single-byte string encoded with expected number of errors.
  *
@@ -283,6 +286,7 @@ const char *utf8_invalid_tests[][3] = {
 //    5.3.4  U+nFFFE U+nFFFF (for n = 1..10)
     {NULL, NULL, NULL},
 };
+/* clang-format on */
 
 /* BLI_utf8_invalid_strip (and indirectly, BLI_utf8_invalid_byte). */
 TEST(string, Utf8InvalidBytes)



More information about the Bf-blender-cvs mailing list