[libcxx-commits] [PATCH] D128577: [libc++][chrono] Implements formatter day.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jun 25 02:39:54 PDT 2022


Mordante created this revision.
Herald added a subscriber: mgorny.
Herald added a project: All.
Mordante requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This implements the enabled specializaton
template<class charT> struct formatter<chrono::day, charT>;

and
template<class charT, class traits>

  basic_ostream<charT, traits>&
    operator<<(basic_ostream<charT, traits>& os, const day& d);

Implements:

- LWG 3241 chrono-spec grammar ambiguity in ยง[time.format]

Partially implements:

- P1361 <https://reviews.llvm.org/P1361> Integration of chrono with text formatting


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128577

Files:
  libcxx/docs/Status/Cxx20Issues.csv
  libcxx/docs/Status/Cxx20Papers.csv
  libcxx/include/CMakeLists.txt
  libcxx/include/__chrono/formatter.h
  libcxx/include/__chrono/ostream.h
  libcxx/include/__chrono/parser_std_format_spec.h
  libcxx/include/__chrono/statically_widen.h
  libcxx/include/__format/parser_std_format_spec.h
  libcxx/include/chrono
  libcxx/include/module.modulemap.in
  libcxx/test/libcxx/private_headers.verify.cpp
  libcxx/test/libcxx/utilities/format/format.formatter/format.formatter.spec/formattable.compile.pass.cpp
  libcxx/test/std/time/time.cal/time.cal.day/time.cal.day.nonmembers/ostream.pass.cpp
  libcxx/test/std/time/time.syn/formatter.day.pass.cpp
  libcxx/test/std/time/time.syn/formatter_tests.h
  libcxx/test/std/utilities/format/format.formatter/format.formatter.spec/types.compile.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128577.439962.patch
Type: text/x-patch
Size: 65417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220625/15bd81ba/attachment-0001.bin>


More information about the libcxx-commits mailing list