[all-commits] [llvm/llvm-project] 787ccd: [libc++][format] Adds formatter pointer.

mordante via All-commits all-commits at lists.llvm.org
Mon Jan 24 09:13:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 787ccd345cbb3a569ba751580bb806552b4b6e57
      https://github.com/llvm/llvm-project/commit/787ccd345cbb3a569ba751580bb806552b4b6e57
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/docs/Status/Cxx2bIssues.csv
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__format/format_arg.h
    A libcxx/include/__format/formatter_pointer.h
    M libcxx/include/__format/parser_std_format_spec.h
    M libcxx/include/format
    M libcxx/include/module.modulemap
    A libcxx/test/libcxx/diagnostics/detail.headers/format/formatter_pointer.module.verify.cpp
    M libcxx/test/libcxx/utilities/format/format.arguments/format.arg/visit_format_arg.pass.cpp
    A libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_pointer.pass.cpp
    A libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.pointer.pass.cpp
    M libcxx/test/std/utilities/format/format.functions/format_tests.h

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

This implements the last required formatter specialization.

Completes:
- LWG 3251 Are std::format alignment specifiers applied to string arguments?
- LWG 3340 Formatting functions should throw on argument/format string mismatch in §[format.functions]
- LWG 3540 §[format.arg] There should be no const in basic_format_arg(const T* p)

Implements parts of:
- P0645 Text Formatting

Depends on D114001

Reviewed By: ldionne, vitaut, #libc

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




More information about the All-commits mailing list