[all-commits] [llvm/llvm-project] 5b2ab3: [libc++][chrono] Adds the sys_info class.

Mark de Wever via All-commits all-commits at lists.llvm.org
Fri Apr 5 10:33:12 PDT 2024


  Branch: refs/heads/users/mordante/adds_sys_info
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b2ab38b65efc75f38408c1df3c7a08fa890ab8e
      https://github.com/llvm/llvm-project/commit/5b2ab38b65efc75f38408c1df3c7a08fa890ab8e
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
    M libcxx/docs/Status/Cxx2cIssues.csv
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__chrono/sys_info.h
    M libcxx/include/__chrono/time_zone.h
    M libcxx/include/chrono
    M libcxx/include/libcxx.imp
    M libcxx/include/module.modulemap
    M libcxx/modules/std/chrono.inc
    M libcxx/src/include/tzdb/types_private.h
    M libcxx/src/include/tzdb/tzdb_list_private.h
    M libcxx/src/time_zone.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.timezone/time.zone.members/get_info.sys_time.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.info/time.zone.info.sys/sys_info.members.compile.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/get_info.sys_time.pass.cpp
    A libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp
    M libcxx/utils/libcxx/test/features.py

  Log Message:
  -----------
  [libc++][chrono] Adds the sys_info class.

Adds the sys_info class and time_zone::get_info(). The code still
has a few quirks and has not been optimized for performance yet.

The returned sys_info is compared against the output of the zdump tool in
the test giving confidence the implementation is correct.

Implements parts of:
- P0355 Extending <chrono> to Calendars and Time Zones

Implements:
- LWGXXXX The sys_info range should be affected by save


  Commit: bbdfe5083fa781cc190bf87564f5a8bb01cedd32
      https://github.com/llvm/llvm-project/commit/bbdfe5083fa781cc190bf87564f5a8bb01cedd32
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2024-04-05 (Fri, 05 Apr 2024)

  Changed paths:
    M libcxx/include/__chrono/sys_info.h
    M libcxx/src/time_zone.cpp
    M libcxx/test/libcxx/time/time.zone/time.zone.timezone/time.zone.members/get_info.sys_time.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.info/time.zone.info.sys/sys_info.members.compile.pass.cpp
    M libcxx/test/std/time/time.zone/time.zone.timezone/time.zone.members/sys_info.zdump.pass.cpp

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


Compare: https://github.com/llvm/llvm-project/compare/7f89e6820bf2...bbdfe5083fa7

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