[libcxx-commits] [PATCH] D111922: [libc++] P1981: Rename leap to leap_second

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 15 19:56:04 PDT 2021


jloser created this revision.
jloser added reviewers: ldionne, Quuxplusone, Mordante.
jloser requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Rename `leap` to `leap_second` in `chrono`. Didn't mark P1981 <https://reviews.llvm.org/P1981> as
"Complete" yet as the `tzdb` parts are not implemented yet, so there is
nothing to rename at this time.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111922

Files:
  libcxx/include/chrono


Index: libcxx/include/chrono
===================================================================
--- libcxx/include/chrono
+++ libcxx/include/chrono
@@ -697,38 +697,38 @@
                   const zoned_time<Duration2, TimeZonePtr>& y);
 
 // 25.10.8, leap second support    // C++20
-class leap;
+class leap_second;
 
-bool operator==(const leap& x, const leap& y);
-bool operator!=(const leap& x, const leap& y);
-bool operator< (const leap& x, const leap& y);
-bool operator> (const leap& x, const leap& y);
-bool operator<=(const leap& x, const leap& y);
-bool operator>=(const leap& x, const leap& y);
+bool operator==(const leap_second& x, const leap_second& y);
+bool operator!=(const leap_second& x, const leap_second& y);
+bool operator< (const leap_second& x, const leap_second& y);
+bool operator> (const leap_second& x, const leap_second& y);
+bool operator<=(const leap_second& x, const leap_second& y);
+bool operator>=(const leap_second& x, const leap_second& y);
 template<class Duration>
-  bool operator==(const leap& x, const sys_time<Duration>& y);
+  bool operator==(const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator==(const sys_time<Duration>& x, const leap& y);
+  bool operator==(const sys_time<Duration>& x, const leap_second& y);
 template<class Duration>
-  bool operator!=(const leap& x, const sys_time<Duration>& y);
+  bool operator!=(const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator!=(const sys_time<Duration>& x, const leap& y);
+  bool operator!=(const sys_time<Duration>& x, const leap_second& y);
 template<class Duration>
-  bool operator< (const leap& x, const sys_time<Duration>& y);
+  bool operator< (const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator< (const sys_time<Duration>& x, const leap& y);
+  bool operator< (const sys_time<Duration>& x, const leap_second& y);
 template<class Duration>
-  bool operator> (const leap& x, const sys_time<Duration>& y);
+  bool operator> (const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator> (const sys_time<Duration>& x, const leap& y);
+  bool operator> (const sys_time<Duration>& x, const leap_second& y);
 template<class Duration>
-  bool operator<=(const leap& x, const sys_time<Duration>& y);
+  bool operator<=(const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator<=(const sys_time<Duration>& x, const leap& y);
+  bool operator<=(const sys_time<Duration>& x, const leap_second& y);
 template<class Duration>
-  bool operator>=(const leap& x, const sys_time<Duration>& y);
+  bool operator>=(const leap_second& x, const sys_time<Duration>& y);
 template<class Duration>
-  bool operator>=(const sys_time<Duration>& x, const leap& y);
+  bool operator>=(const sys_time<Duration>& x, const leap_second& y);
 
 // 25.10.9, class link    // C++20
 class link;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111922.380134.patch
Type: text/x-patch
Size: 2961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211016/2b3d1445/attachment.bin>


More information about the libcxx-commits mailing list