[libcxx-commits] [libcxx] has `basic_string` call `basic_string_view`'s assume-valid constructor (PR #105441)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 20 15:08:25 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 5e6a1987a5d4574d3c3811f878ddbbbf7c35fa01 89870ab1a7921ac69314d250ea2f4cbf6ac166b9 --extensions  -- libcxx/include/string libcxx/include/string_view
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/string_view b/libcxx/include/string_view
index c468dc6fc0..fbfbef9595 100644
--- a/libcxx/include/string_view
+++ b/libcxx/include/string_view
@@ -690,7 +690,7 @@ private:
   const value_type* __data_;
   size_type __size_;
 
-  template<class, class, class>
+  template <class, class, class>
   friend class basic_string;
 };
 _LIBCPP_CTAD_SUPPORTED_FOR_TYPE(basic_string_view);

``````````

</details>


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


More information about the libcxx-commits mailing list