[libcxx-commits] [libcxx] [libc++] Cover support for header inclusion in all modes (PR #202246)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jun 7 22:31:12 PDT 2026


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 origin/main HEAD --extensions ,h -- libcxx/include/__algorithm/find.h libcxx/include/__algorithm/lexicographical_compare.h libcxx/include/__chrono/exception.h libcxx/include/__chrono/formatter.h libcxx/include/__chrono/gps_clock.h libcxx/include/__chrono/leap_second.h libcxx/include/__chrono/local_info.h libcxx/include/__chrono/ostream.h libcxx/include/__chrono/parser_std_format_spec.h libcxx/include/__chrono/tai_clock.h libcxx/include/__chrono/time_zone.h libcxx/include/__chrono/time_zone_link.h libcxx/include/__chrono/tzdb.h libcxx/include/__chrono/tzdb_list.h libcxx/include/__chrono/utc_clock.h libcxx/include/__chrono/zoned_time.h libcxx/include/__filesystem/path.h libcxx/include/__format/format_context.h libcxx/include/__format/format_functions.h libcxx/include/__format/formatter_floating_point.h libcxx/include/__format/formatter_integral.h libcxx/include/__iterator/istreambuf_iterator.h libcxx/include/__locale libcxx/include/__locale_dir/locale_base_api/bsd_locale_fallbacks.h libcxx/include/__locale_dir/pad_and_output.h libcxx/include/__locale_dir/support/aix.h libcxx/include/__locale_dir/support/linux.h libcxx/include/__locale_dir/support/newlib.h libcxx/include/__locale_dir/support/no_locale/characters.h libcxx/include/__locale_dir/support/no_locale/conversions.h libcxx/include/__ostream/basic_ostream.h libcxx/include/__ostream/print.h libcxx/include/__ostream/put_character_sequence.h libcxx/include/__ranges/istream_view.h libcxx/include/__string/char_traits.h libcxx/include/__thread/thread.h libcxx/include/__thread/timed_backoff_policy.h libcxx/include/barrier libcxx/include/chrono libcxx/include/codecvt libcxx/include/complex libcxx/include/cwchar libcxx/include/cwctype libcxx/include/format libcxx/include/fstream libcxx/include/future libcxx/include/iomanip libcxx/include/ios libcxx/include/istream libcxx/include/latch libcxx/include/locale libcxx/include/ostream libcxx/include/ranges libcxx/include/regex libcxx/include/semaphore libcxx/include/shared_mutex libcxx/include/sstream libcxx/include/streambuf libcxx/include/string libcxx/include/strstream libcxx/include/syncstream libcxx/include/thread libcxx/include/vector --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libcxx/include/istream b/libcxx/include/istream
index e56fc224c..8b71504c5 100644
--- a/libcxx/include/istream
+++ b/libcxx/include/istream
@@ -177,8 +177,8 @@ template <class Stream, class T>
 #  include <streambuf>
 #  include <version>
 
-#    include <__fwd/istream.h>
-#    include <__iterator/istreambuf_iterator.h>
+#  include <__fwd/istream.h>
+#  include <__iterator/istreambuf_iterator.h>
 
 #  if _LIBCPP_HAS_LOCALIZATION
 
diff --git a/libcxx/include/string b/libcxx/include/string
index 4af65388d..11e1c5ddc 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -929,7 +929,7 @@ private:
     return std::__make_bounded_iter(__p, __get_pointer(), __get_pointer() + size());
 #  else
     return const_iterator(__p);
-#  endif                    // _LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING
+#  endif // _LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING
   }
 
 public:

``````````

</details>


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


More information about the libcxx-commits mailing list