[all-commits] [llvm/llvm-project] b6abb4: [libc++][chrono] Loads leap-seconds.list in tzdb.

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Mar 16 12:43:42 PDT 2024


  Branch: refs/heads/users/mordante/implements_leap_seconds
  Home:   https://github.com/llvm/llvm-project
  Commit: b6abb45bb041c41fd478d5c5a2c5286cc6b8d1d5
      https://github.com/llvm/llvm-project/commit/b6abb45bb041c41fd478d5c5a2c5286cc6b8d1d5
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-16 (Sat, 16 Mar 2024)

  Changed paths:
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/docs/Status/SpaceshipProjects.csv
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__chrono/leap_second.h
    M libcxx/include/__chrono/tzdb.h
    M libcxx/include/chrono
    M libcxx/include/libcxx.imp
    M libcxx/include/module.modulemap
    M libcxx/modules/std/chrono.inc
    M libcxx/src/CMakeLists.txt
    A libcxx/src/include/tzdb/leap_second_private.h
    M libcxx/src/tzdb.cpp
    M libcxx/test/libcxx/diagnostics/chrono.nodiscard_extensions.compile.pass.cpp
    M libcxx/test/libcxx/diagnostics/chrono.nodiscard_extensions.verify.cpp
    A libcxx/test/libcxx/time/time.zone/time.zone.db/leap_seconds.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.access/get_tzdb.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.leap/assign.copy.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.leap/cons.copy.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.leap/members/date.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.leap/members/value.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.leap/nonmembers/comparison.pass.cpp
    A libcxx/test/support/test_chrono_leap_second.h

  Log Message:
  -----------
  [libc++][chrono] Loads leap-seconds.list in tzdb.

This implements the loading of the leap-seconds.list file and store its
contents in the tzdb struct.

This adds the required `leap_seconds` member.

The class leap_seconds is fully implemented including its non-member
functions.

Implements parts of:
- P0355 Extending <chrono> to Calendars and Time Zones
- P1614 The Mothership has Landed

Implements:
- P1981 Rename leap to leap_second
- LWG3359 <chrono> leap second support should allow for negative leap seconds
- LWG3383 ยง[time.zone.leap.nonmembers] sys_seconds should be replaced with seconds


  Commit: 22aac5756ab30fb88df02b70747030c0f8bdedad
      https://github.com/llvm/llvm-project/commit/22aac5756ab30fb88df02b70747030c0f8bdedad
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-16 (Sat, 16 Mar 2024)

  Changed paths:
    M libcxx/include/__chrono/leap_second.h
    M libcxx/src/tzdb.cpp
    M libcxx/test/libcxx/time/time.zone/time.zone.db/leap_seconds.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.db/time.zone.db.tzdb/tzdb.members.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/assign.copy.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/cons.copy.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/members/date.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/members/value.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/nonmembers/comparison.pass.cpp
    M libcxx/test/support/test_chrono_leap_second.h

  Log Message:
  -----------
  Addresses review comments.


  Commit: 865690c1d48886160c42c665bd622b9c6f9b662f
      https://github.com/llvm/llvm-project/commit/865690c1d48886160c42c665bd622b9c6f9b662f
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-16 (Sat, 16 Mar 2024)

  Changed paths:
    A libcxx/test/std/time/time.zone/time.zone.db/leap_seconds.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/assign.copy.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.leap/cons.copy.pass.cpp

  Log Message:
  -----------
  Address review comments.


  Commit: 99d1c38a5da02aebbff594aa44f38de0324592a5
      https://github.com/llvm/llvm-project/commit/99d1c38a5da02aebbff594aa44f38de0324592a5
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-03-16 (Sat, 16 Mar 2024)

  Changed paths:
    M libcxx/test/std/time/time.zone/time.zone.leap/nonmembers/comparison.pass.cpp

  Log Message:
  -----------
  Avoids GCC CI issue.


Compare: https://github.com/llvm/llvm-project/compare/6ba3dd22f731...99d1c38a5da0

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list