[all-commits] [llvm/llvm-project] db2944: [libc++][format] Adds formatter floating-point.

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


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

  Changed paths:
    A libcxx/benchmarks/formatter_float.bench.cpp
    M libcxx/docs/Status/Cxx20Issues.csv
    M libcxx/docs/Status/Cxx20Papers.csv
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__format/formatter.h
    A libcxx/include/__format/formatter_floating_point.h
    M libcxx/include/__format/formatter_integral.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_floating_point.module.verify.cpp
    A libcxx/test/libcxx/utilities/format/format.string/format.string.std/std_format_spec_floating_point.pass.cpp
    M libcxx/test/std/utilities/format/format.formatter/format.context/format.formatter.spec/formatter.floating_point.pass.cpp
    M libcxx/test/std/utilities/format/format.functions/format_tests.h
    M libcxx/test/std/utilities/format/format.functions/locale-specific_form.pass.cpp

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

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

Reviewed By: #libc, ldionne, vitaut

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




More information about the All-commits mailing list