[libcxx-commits] [libcxx] [libc++] Granularize <string_view> (PR #99683)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 19 11:41:33 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 270f5e42b8daab586ffcd2b46ff41486199f6626 fb2fbf70510f9420b53b72d6041e3a8a8c3e2dda --extensions ,h,cpp -- libcxx/include/__string_view/basic_string_view.h libcxx/include/__string_view/literals.h libcxx/include/__chrono/formatter.h libcxx/include/__chrono/parser_std_format_spec.h libcxx/include/__chrono/time_zone.h libcxx/include/__chrono/time_zone_link.h libcxx/include/__filesystem/path.h libcxx/include/__filesystem/path_iterator.h libcxx/include/__format/buffer.h libcxx/include/__format/format_arg.h libcxx/include/__format/format_arg_store.h libcxx/include/__format/format_functions.h libcxx/include/__format/format_parse_context.h libcxx/include/__format/formatter_integral.h libcxx/include/__format/formatter_output.h libcxx/include/__format/formatter_string.h libcxx/include/__format/formatter_tuple.h libcxx/include/__format/parser_std_format_spec.h libcxx/include/__format/range_default_formatter.h libcxx/include/__format/range_formatter.h libcxx/include/__format/unicode.h libcxx/include/__format/write_escaped.h libcxx/include/__ostream/basic_ostream.h libcxx/include/bitset libcxx/include/chrono libcxx/include/filesystem libcxx/include/format libcxx/include/ostream libcxx/include/print libcxx/include/sstream libcxx/include/string libcxx/include/string_view libcxx/include/thread libcxx/include/vector libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.formatted.print/print_tests.h libcxx/test/std/strings/string.view/char.bad.verify.cpp libcxx/test/std/strings/string.view/string.view.comparison/comparison.verify.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem
index 22a91df4bb..9de3fae420 100644
--- a/libcxx/include/filesystem
+++ b/libcxx/include/filesystem
@@ -571,8 +571,8 @@ inline constexpr bool std::ranges::enable_view<std::filesystem::recursive_direct
 #  include <cstring>
 #  include <iosfwd>
 #  include <new>
-#  include <system_error>
 #  include <string_view>
+#  include <system_error>
 #endif
 
 #endif // _LIBCPP_FILESYSTEM
diff --git a/libcxx/include/thread b/libcxx/include/thread
index a3e7947aa2..743f40f4cf 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -123,8 +123,8 @@ void sleep_for(const chrono::duration<Rep, Period>& rel_time);
 #  include <cstring>
 #  include <functional>
 #  include <new>
-#  include <system_error>
 #  include <string_view>
+#  include <system_error>
 #  include <type_traits>
 #endif
 

``````````

</details>


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


More information about the libcxx-commits mailing list