[libcxx-commits] [PATCH] D114001: [libc++][format] WIP Adds formatter floating-point.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 16 07:11:45 PST 2021


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

This is a draft version that lacks the localization support.
It's up for review to get feedback from the CI.

This properly implements the formatter for floating-point types.

Completes:

- P1652R1 Printf corner cases in std::format
- LWG 3250 std::format: # (alternate form) for NaN and inf
- LWG 3243 std::format and negative zeroes

Implements parts of:

- P0645 Text Formatting

Depends on D70631 <https://reviews.llvm.org/D70631>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114001

Files:
  libcxx/docs/Status/Cxx20Issues.csv
  libcxx/docs/Status/Cxx20Papers.csv
  libcxx/include/CMakeLists.txt
  libcxx/include/__format/formatter_floating_point.h
  libcxx/include/__format/parser_std_format_spec.h
  libcxx/include/format
  libcxx/include/module.modulemap
  libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_floating_point.module.verify.cpp
  libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_floating_point.pass.cpp
  libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.floating_point.pass.cpp
  libcxx/test/std/utilities/format/format.functions/format_tests.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114001.387631.patch
Type: text/x-patch
Size: 137953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211116/20b2d1d4/attachment-0001.bin>


More information about the libcxx-commits mailing list