[libcxx-commits] [libcxx] [libc++][chrono] Loads leap-seconds.list in tzdb. (PR #82113)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 15 10:37:10 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 2e8417680a9ab032859c936b2ceb773bb08e08ca ed8500351776892d37fe9690a749e2d3432553a3 -- libcxx/include/__chrono/leap_second.h libcxx/src/include/tzdb/leap_second_private.h libcxx/test/libcxx/time/time.zone/time.zone.db/leap_seconds.pass.cpp libcxx/test/std/time/time.zone/time.zone.leap/assign.copy.pass.cpp libcxx/test/std/time/time.zone/time.zone.leap/cons.copy.pass.cpp libcxx/test/std/time/time.zone/time.zone.leap/members/date.pass.cpp libcxx/test/std/time/time.zone/time.zone.leap/members/value.pass.cpp libcxx/test/std/time/time.zone/time.zone.leap/nonmembers/comparison.pass.cpp libcxx/test/support/test_chrono_leap_second.h libcxx/include/__chrono/tzdb.h libcxx/include/chrono libcxx/modules/std/chrono.inc libcxx/src/tzdb.cpp libcxx/test/libcxx/diagnostics/chrono.nodiscard_extensions.compile.pass.cpp libcxx/test/libcxx/diagnostics/chrono.nodiscard_extensions.verify.cpp libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.access/get_tzdb.pass.cpp libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.tzdb/tzdb.members.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__chrono/leap_second.h b/libcxx/include/__chrono/leap_second.h
index 68a6a40579..e1d34f926a 100644
--- a/libcxx/include/__chrono/leap_second.h
+++ b/libcxx/include/__chrono/leap_second.h
@@ -36,8 +36,8 @@ namespace chrono {
class leap_second {
public:
struct __constructor_tag;
- [[nodiscard]]
- _LIBCPP_HIDE_FROM_ABI explicit constexpr leap_second(__constructor_tag&&, sys_seconds __date, seconds __value)
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI explicit constexpr leap_second(
+ __constructor_tag&&, sys_seconds __date, seconds __value)
: __date_(__date), __value_(__value) {}
_LIBCPP_HIDE_FROM_ABI leap_second(const leap_second&) = default;
``````````
</details>
https://github.com/llvm/llvm-project/pull/82113
More information about the libcxx-commits
mailing list