[all-commits] [llvm/llvm-project] 105fef: [libc++][chrono] Add calendar type formatters.

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Dec 24 06:11:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 105fef5dca7ea224bf44a13ff3685fb1f3ae0876
      https://github.com/llvm/llvm-project/commit/105fef5dca7ea224bf44a13ff3685fb1f3ae0876
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2022-12-24 (Sat, 24 Dec 2022)

  Changed paths:
    M libcxx/docs/ReleaseNotes.rst
    M libcxx/docs/Status/FormatPaper.csv
    M libcxx/include/__chrono/convert_to_tm.h
    M libcxx/include/__chrono/formatter.h
    M libcxx/include/__chrono/ostream.h
    M libcxx/include/__chrono/parser_std_format_spec.h
    M libcxx/include/__format/parser_std_format_spec.h
    M libcxx/include/atomic
    M libcxx/include/chrono
    M libcxx/include/optional
    M libcxx/test/libcxx/transitive_includes/cxx03.csv
    M libcxx/test/libcxx/transitive_includes/cxx11.csv
    M libcxx/test/libcxx/transitive_includes/cxx14.csv
    M libcxx/test/libcxx/transitive_includes/cxx17.csv
    A libcxx/test/std/time/time.cal/time.cal.md/time.cal.md.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.mdlast/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.mwd/time.cal.mwd.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.mwdlast/time.cal.mwdlast.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.wdidx/time.cal.wdidx.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.wdlast/time.cal.wdlast.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.ym/time.cal.ym.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.ymd/time.cal.ymd.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.ymdlast/time.cal.ymdlast.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.ymwd/time.cal.ymwd.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.cal/time.cal.ymwdlast/time.cal.ymwdlast.nonmembers/ostream.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.month_day.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.month_day_last.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.month_weekday.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.weekday_index.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.weekday_last.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.year_month.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.year_month_day.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.year_month_day_last.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.year_month_weekday.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.year_month_weekday_last.pass.cpp
    M libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] Add calendar type formatters.

Some of the calendar types have landed before, this adds the missing
set. Note this does not complete the implementation of the chrono
formatters.

This removes the `chrono` header for some transitive include in C++17
mode. This is needed to avoid inclusion cycles.

Partially implements:
- P1361 Integration of chrono with text formatting
- P2372 Fixing locale handling in chrono formatters

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D137022




More information about the All-commits mailing list