[all-commits] [llvm/llvm-project] 3f65f7: [libc++][print] Adds FILE functions.

Mark de Wever via All-commits all-commits at lists.llvm.org
Tue Jul 18 11:07:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f65f718332c96c7ececcd9cde84be740076a4f1
      https://github.com/llvm/llvm-project/commit/3f65f718332c96c7ececcd9cde84be740076a4f1
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M libcxx/docs/FeatureTestMacroTable.rst
    M libcxx/docs/Status/Cxx23Papers.csv
    M libcxx/docs/Status/FormatIssues.csv
    M libcxx/docs/Status/FormatPaper.csv
    M libcxx/include/__format/buffer.h
    M libcxx/include/print
    M libcxx/include/version
    M libcxx/modules/std/print.cppm
    M libcxx/src/CMakeLists.txt
    A libcxx/src/print.cpp
    A libcxx/test/libcxx/input.output/iostream.format/print.fun/vprint_unicode_posix.pass.cpp
    A libcxx/test/libcxx/input.output/iostream.format/print.fun/vprint_unicode_windows.pass.cpp
    M libcxx/test/libcxx/transitive_includes/cxx03.csv
    M libcxx/test/libcxx/transitive_includes/cxx11.csv
    M libcxx/test/libcxx/transitive_includes/cxx14.csv
    M libcxx/test/libcxx/transitive_includes/cxx17.csv
    M libcxx/test/libcxx/transitive_includes/cxx20.csv
    M libcxx/test/libcxx/transitive_includes/cxx23.csv
    M libcxx/test/libcxx/transitive_includes/cxx26.csv
    A libcxx/test/std/input.output/iostream.format/print.fun/no_file_description.pass.cpp
    A libcxx/test/std/input.output/iostream.format/print.fun/print.file.pass.cpp
    A libcxx/test/std/input.output/iostream.format/print.fun/print_tests.h
    A libcxx/test/std/input.output/iostream.format/print.fun/println.file.pass.cpp
    A libcxx/test/std/input.output/iostream.format/print.fun/vprint_nonunicode.file.pass.cpp
    A libcxx/test/std/input.output/iostream.format/print.fun/vprint_unicode.file.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/ostream.version.compile.pass.cpp
    A libcxx/test/std/language.support/support.limits/support.limits.general/print.version.compile.pass.cpp
    M libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.pass.cpp
    M libcxx/test/std/utilities/format/format.functions/fill.unicode.pass.cpp
    M libcxx/utils/ci/run-buildbot
    M libcxx/utils/generate_feature_test_macro_components.py
    M libcxx/utils/libcxx/test/header_information.py

  Log Message:
  -----------
  [libc++][print] Adds FILE functions.

Drive-by fix to make sure the __retarget_buffer works correctly whan
using a hint of 1. This was discovered in one of the new tests.

Drive-by fixes __retarget_buffer when initialized with size 1.

Implements parts of
- P2093R14 Formatted output
- P2539R4  Should the output of std::print to a terminal be
           synchronized with the underlying stream?

Reviewed By: #libc, ldionne

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




More information about the All-commits mailing list