[libcxx-commits] [libcxx] [libc++][chrono] Adds a missing main include. (PR #132100)

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 19 14:08:32 PDT 2025


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 0668bb28cc98202f1ae252fb0357b2f1043bdbe7 3189eaf041c000da22adc7d4a1a8ec4f5b781615 --extensions  -- libcxx/include/chrono
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/chrono b/libcxx/include/chrono
index a3367f89ee..cd9b988720 100644
--- a/libcxx/include/chrono
+++ b/libcxx/include/chrono
@@ -1072,8 +1072,8 @@ constexpr chrono::year                                  operator ""y(unsigned lo
 #    endif
 
 #    if _LIBCPP_HAS_TIME_ZONE_DATABASE && _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION
-#      include <__chrono/leap_second.h>
 #      include <__chrono/gps_clock.h>
+#      include <__chrono/leap_second.h>
 #      include <__chrono/tai_clock.h>
 #      include <__chrono/time_zone.h>
 #      include <__chrono/time_zone_link.h>

``````````

</details>


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


More information about the libcxx-commits mailing list