[libcxx-commits] [libcxx] [libc++][strings] P2591R5: Concatenation of strings and string views (PR #88389)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 9 22:47:42 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 41f0574c4654fb8a8cbb8c26d453f51a31cfd2a0 be56164074ad254a3db80a7eeee9a33a616c1230 -- libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp libcxx/include/string libcxx/include/version libcxx/test/std/language.support/support.limits/support.limits.general/string.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/string_view.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp b/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp
index f0ee9e58a5..0fb6d50220 100644
--- a/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp
+++ b/libcxx/test/std/strings/basic.string/string.nonmembers/string_op+/string.string_view.pass.cpp
@@ -154,18 +154,18 @@ constexpr bool test() {
 int main(int, char**) {
   test<char>();
   static_assert(test<char>());
-  #ifndef TEST_HAS_NO_WIDE_CHARACTERS
+#ifndef TEST_HAS_NO_WIDE_CHARACTERS
   test<wchar_t>();
-    static_assert(test<wchar_t>());
-  #endif
-  #ifndef TEST_HAS_NO_CHAR8_T
+  static_assert(test<wchar_t>());
+#endif
+#ifndef TEST_HAS_NO_CHAR8_T
   test<char8_t>();
-    static_assert(test<char8_t>());
-  #endif
+  static_assert(test<char8_t>());
+#endif
   test<char16_t>();
-    static_assert(test<char16_t>());
+  static_assert(test<char16_t>());
   test<char32_t>();
-    static_assert(test<char32_t>());
+  static_assert(test<char32_t>());
 
   return 0;
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/88389


More information about the libcxx-commits mailing list