[libcxx-commits] [libcxx] [libc++] Implements LWG3130. (PR #101889)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 4 06:36:06 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 2fe08ed35a968dcfd797cbd31ae56bb0b1447faf 2d3e10abfbe04f632749897699f670ba13f5d6cb --extensions ,cpp,h -- libcxx/include/fstream libcxx/include/ios libcxx/include/sstream libcxx/include/string libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/move.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/string.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/move.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/path.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/pointer.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/string.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/default.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/move.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/pointer.pass.cpp libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/string.pass.cpp libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/copyfmt.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/move.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/string-alloc.mode.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/string.alloc.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/string.mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/string.move.mode.pass.cpp libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/string.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/move.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/string-alloc.mode.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.alloc.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.move.mode.pass.cpp libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/string.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/default.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/move.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/string-alloc.mode.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/string.alloc.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/string.mode.alloc.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/string.move.mode.pass.cpp libcxx/test/std/input.output/string.streams/stringstream/stringstream.cons/string.pass.cpp libcxx/test/std/strings/basic.string/string.cons/move_alloc.pass.cpp libcxx/test/std/strings/basic.string/string.cons/substr_rvalue.pass.cpp libcxx/test/std/strings/basic.string/string.modifiers/string_swap/swap.pass.cpp libcxx/test/support/operator_hijacker.h libcxx/test/support/test_macros.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp
index d15276b440..f6533cf00f 100644
--- a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/default.pass.cpp
@@ -23,16 +23,12 @@ int main(int, char**)
{
std::fstream fs;
}
- {
- std::basic_fstream<char, operator_hijacker_char_traits<char> > fs;
- }
+ { std::basic_fstream<char, operator_hijacker_char_traits<char> > fs; }
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
{
std::wfstream fs;
}
- {
- std::basic_fstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs;
- }
+ { std::basic_fstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs; }
#endif
return 0;
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp
index 70d1efca20..331e176346 100644
--- a/libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/default.pass.cpp
@@ -23,16 +23,12 @@ int main(int, char**)
{
std::ifstream fs;
}
- {
- std::basic_ifstream<char, operator_hijacker_char_traits<char> > fs;
- }
+ { std::basic_ifstream<char, operator_hijacker_char_traits<char> > fs; }
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
{
std::wifstream fs;
}
- {
- std::basic_ifstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs;
- }
+ { std::basic_ifstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs; }
#endif
return 0;
diff --git a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/default.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/default.pass.cpp
index a7b0918f79..1e123c2d54 100644
--- a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/default.pass.cpp
@@ -23,16 +23,12 @@ int main(int, char**)
{
std::ofstream fs;
}
- {
- std::basic_ofstream<char, operator_hijacker_char_traits<char> > fs;
- }
+ { std::basic_ofstream<char, operator_hijacker_char_traits<char> > fs; }
#ifndef TEST_HAS_NO_WIDE_CHARACTERS
{
std::wofstream fs;
}
- {
- std::basic_fstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs;
- }
+ { std::basic_fstream<wchar_t, operator_hijacker_char_traits<wchar_t> > fs; }
#endif
return 0;
``````````
</details>
https://github.com/llvm/llvm-project/pull/101889
More information about the libcxx-commits
mailing list