HomePhabricator

[libc++][format] Adds bool formatter.

Authored by Mordante on Dec 14 2020, 8:39 AM.

Description

[libc++][format] Adds bool formatter.

Implements the formatter for Boolean types.
[format.formatter.spec]/2.3
For each charT, for each cv-unqualified arithmetic type ArithmeticT other
than char, wchar_t, char8_t, char16_t, or char32_t, a specialization

template<> struct formatter<ArithmeticT, charT>;

This removes the stub implemented in D96664.

Implements parts of:

  • P0645 Text Formatting
  • P1652 Printf corner cases in std::format

Completes:

  • P1868 width: clarifying units of width and precision in std::format

Reviewed By: #libc, ldionne

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

Details

Committed
MordanteOct 7 2021, 8:17 AM
Reviewer
Restricted Project
Differential Revision
D103670: [libc++][format] Adds bool formatter.
Parents
rG49e736d845d8: [libc++][format] Adds char formatter.
Branches
Unknown
Tags
Unknown