h-vetinari wrote:
If you look at the branch targets you'll see that they're stacked on top of
each other (poor man's stacked reviews on GitHub using multiple branches).
https://github.com/llvm/llvm-project/pull/82157
___
llvm-branch-commits mailing
EricWF wrote:
Which of this change and D82113 would you like to move? They seem to overlap
substantially?
https://github.com/llvm/llvm-project/pull/82157
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/82157
>From 7a742c0e564ffa37ad299cf6186faadd61e34d29 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Fri, 23 Sep 2022 18:33:20 +0200
Subject: [PATCH] [libc++][chrono] Completes the tzdb class.
It adds the missing
@@ -655,6 +655,57 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type&
__rules) {
std::ranges::sort(__tzdb.leap_seconds);
}
+#ifdef _WIN32
+[[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb)
{
+ // TODO TZDB Implement this on Windows.
@@ -655,6 +655,57 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type&
__rules) {
std::ranges::sort(__tzdb.leap_seconds);
}
+#ifdef _WIN32
+[[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb)
{
+ // TODO TZDB Implement this on Windows.
@@ -655,6 +655,57 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type&
__rules) {
std::ranges::sort(__tzdb.leap_seconds);
}
+#ifdef _WIN32
+[[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb)
{
+ // TODO TZDB Implement this on Windows.
@@ -43,6 +44,40 @@ struct tzdb {
vector links;
vector leap_seconds;
+
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI const time_zone*
__locate_zone(string_view __name) const {
+if (const time_zone* __result = __find_in_zone(__name); __result)
+ return __result;
+
+
@@ -655,6 +655,57 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type&
__rules) {
std::ranges::sort(__tzdb.leap_seconds);
}
+#ifdef _WIN32
+[[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb)
{
+ // TODO TZDB Implement this on Windows.
@@ -655,6 +655,57 @@ void __init_tzdb(tzdb& __tzdb, __tz::__rules_storage_type&
__rules) {
std::ranges::sort(__tzdb.leap_seconds);
}
+#ifdef _WIN32
+[[nodiscard]] static const time_zone* __current_zone_windows(const tzdb& tzdb)
{
+ // TODO TZDB Implement this on Windows.
@@ -43,6 +44,40 @@ struct tzdb {
vector links;
vector leap_seconds;
+
+ [[nodiscard]] _LIBCPP_HIDE_FROM_ABI const time_zone*
__locate_zone(string_view __name) const {
+if (const time_zone* __result = __find_in_zone(__name); __result)
+ return __result;
+
+
https://github.com/ldionne approved this pull request.
https://github.com/llvm/llvm-project/pull/82157
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ldionne edited
https://github.com/llvm/llvm-project/pull/82157
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
llvmbot wrote:
@llvm/pr-subscribers-libcxx
Author: Mark de Wever (mordante)
Changes
It adds the missing member functions of the tzdb class and adds the free
functions that use these member functions.
Implements parts of:
- P0355 Extending chrono to Calendars and Time Zones
---
Full
https://github.com/mordante created
https://github.com/llvm/llvm-project/pull/82157
It adds the missing member functions of the tzdb class and adds the free
functions that use these member functions.
Implements parts of:
- P0355 Extending to Calendars and Time Zones
>From
14 matches
Mail list logo