[all-commits] [llvm/llvm-project] 719c3d: [libc++][chrono] Implements formatter duration.

mordante via All-commits all-commits at lists.llvm.org
Tue Oct 18 11:39:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 719c3dc6f2f7c7dd01b190496acd8ddecacabe01
      https://github.com/llvm/llvm-project/commit/719c3dc6f2f7c7dd01b190496acd8ddecacabe01
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2022-10-18 (Tue, 18 Oct 2022)

  Changed paths:
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/docs/Status/Cxx20Papers.csv
    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/chrono
    A libcxx/test/std/time/time.duration/time.duration.nonmember/ostream.pass.cpp
    A libcxx/test/std/time/time.syn/formatter.duration.pass.cpp
    M libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] Implements formatter duration.

Partially implements:
- P1361 Integration of chrono with text formatting
- P2372 Fixing locale handling in chrono formatters
- LWG3270 Parsing and formatting %j with durations

Completes:
- P1650R0 std::chrono::days with 'd' suffix
- LWG3262 Formatting of negative durations is not specified
- LWG3314 Is stream insertion behavior locale dependent when Period::type is micro?

Reviewed By: ldionne, #libc

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




More information about the All-commits mailing list