[all-commits] [llvm/llvm-project] 49e736: [libc++][format] Adds char formatter.

mordante via All-commits all-commits at lists.llvm.org
Thu Oct 7 08:16:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49e736d845d8e1beb3db0abcc782c9525e44f31e
      https://github.com/llvm/llvm-project/commit/49e736d845d8e1beb3db0abcc782c9525e44f31e
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2021-10-07 (Thu, 07 Oct 2021)

  Changed paths:
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__format/formatter_char.h
    M libcxx/include/format
    M libcxx/include/module.modulemap
    A libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_char.module.verify.cpp
    A libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_char.pass.cpp
    M libcxx/test/std/utilities/format/format.functions/format_tests.h

  Log Message:
  -----------
  [libc++][format] Adds char formatter.

Implements the formatter for all fundamental integer types.
[format.formatter.spec]/2.1
The specializations
```
  template<> struct formatter<char, char>;
  template<> struct formatter<char, wchar_t>;
  template<> struct formatter<wchar_t, wchar_t>;
```
This removes the stub implemented in D96664.

Implements parts of:
- P0645 Text Formatting

Reviewed By: #libc, ldionne

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




More information about the All-commits mailing list