[libcxx-commits] [libcxx] [libc++][sstream] Add deleted special member functions (PR #80254)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jan 31 23:27:43 PST 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 7565ae6eb99b6d3c5d83d04404a2df1b3785dbfe efd6caed78da34bc9c284aa8739ba160a08fb543 -- libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.assign/copy.compile.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/copy.compile.pass.cpp libcxx/include/sstream
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/copy.compile.pass.cpp b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/copy.compile.pass.cpp
index 1697cfaf85..48faad121a 100644
--- a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/copy.compile.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.assign/copy.compile.pass.cpp
@@ -16,8 +16,8 @@
#include <sstream>
#include <type_traits>
-static_assert(!std::is_copy_assignable<std::istringstream>::value,"");
+static_assert(!std::is_copy_assignable<std::istringstream>::value, "");
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
-static_assert(!std::is_copy_assignable<std::wistringstream>::value,"");
+static_assert(!std::is_copy_assignable<std::wistringstream>::value, "");
#endif
diff --git a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/copy.compile.pass.cpp b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/copy.compile.pass.cpp
index 0f68a8270e..758d3371f1 100644
--- a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/copy.compile.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/copy.compile.pass.cpp
@@ -16,8 +16,8 @@
#include <sstream>
#include <type_traits>
-static_assert(!std::is_copy_constructible<std::istringstream>::value,"");
+static_assert(!std::is_copy_constructible<std::istringstream>::value, "");
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
-static_assert(!std::is_copy_constructible<std::wistringstream>::value,"");
+static_assert(!std::is_copy_constructible<std::wistringstream>::value, "");
#endif
diff --git a/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/copy.compile.pass.cpp b/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/copy.compile.pass.cpp
index 8e2ffd852c..b65443b3f6 100644
--- a/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/copy.compile.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.assign/copy.compile.pass.cpp
@@ -16,8 +16,8 @@
#include <sstream>
#include <type_traits>
-static_assert(!std::is_copy_constructible<std::stringstream>::value,"");
+static_assert(!std::is_copy_constructible<std::stringstream>::value, "");
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
-static_assert(!std::is_copy_constructible<std::wstringstream>::value,"");
+static_assert(!std::is_copy_constructible<std::wstringstream>::value, "");
#endif
diff --git a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/copy.compile.pass.cpp b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/copy.compile.pass.cpp
index 2756e0d7f7..0ef6ec41a4 100644
--- a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/copy.compile.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/copy.compile.pass.cpp
@@ -18,8 +18,8 @@
#include <sstream>
#include <type_traits>
-static_assert(!std::is_copy_assignable<std::basic_stringbuf<char>>::value,"");
+static_assert(!std::is_copy_assignable<std::basic_stringbuf<char>>::value, "");
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
-static_assert(!std::is_copy_assignable<std::basic_stringbuf<wchar_t>>::value,"");
+static_assert(!std::is_copy_assignable<std::basic_stringbuf<wchar_t>>::value, "");
#endif
diff --git a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/copy.compile.pass.cpp b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/copy.compile.pass.cpp
index 1c779d5610..c20bc1c922 100644
--- a/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/copy.compile.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.cons/copy.compile.pass.cpp
@@ -18,8 +18,8 @@
#include <sstream>
#include <type_traits>
-static_assert(!std::is_copy_constructible<std::basic_stringbuf<char>>::value,"");
+static_assert(!std::is_copy_constructible<std::basic_stringbuf<char>>::value, "");
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
-static_assert(!std::is_copy_constructible<std::basic_stringbuf<wchar_t>>::value,"");
+static_assert(!std::is_copy_constructible<std::basic_stringbuf<wchar_t>>::value, "");
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/80254
More information about the libcxx-commits
mailing list