[all-commits] [llvm/llvm-project] af8c49: [libc++] Introduce a setting to remove fstream fro...

Louis Dionne via All-commits all-commits at lists.llvm.org
Sun Nov 20 07:51:53 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: af8c49dc1ec44339d915d988ffe0f38da68ca0e7
      https://github.com/llvm/llvm-project/commit/af8c49dc1ec44339d915d988ffe0f38da68ca0e7
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-11-20 (Sun, 20 Nov 2022)

  Changed paths:
    M libcxx/CMakeLists.txt
    A libcxx/cmake/caches/Generic-no-fstream.cmake
    M libcxx/include/CMakeLists.txt
    M libcxx/include/__config_site.in
    M libcxx/include/fstream
    M libcxx/include/module.modulemap.in
    M libcxx/src/ios.instantiations.cpp
    M libcxx/test/libcxx/assertions/headers_declare_verbose_abort.sh.cpp
    M libcxx/test/libcxx/clang_tidy.sh.cpp
    M libcxx/test/libcxx/double_include.sh.cpp
    M libcxx/test/libcxx/min_max_macros.compile.pass.cpp
    M libcxx/test/libcxx/modules_include.sh.cpp
    M libcxx/test/libcxx/nasty_macros.compile.pass.cpp
    M libcxx/test/libcxx/no_assert_include.compile.pass.cpp
    M libcxx/test/std/input.output/file.streams/fstreams/filebuf.virtuals/seekoff.pass.cpp
    M libcxx/test/std/input.output/file.streams/lit.local.cfg
    M libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.virtuals/streambuf.virt.put/xsputn.PR14074.pass.cpp
    M libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/overflow.pass.cpp
    M libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/pbackfail.pass.cpp
    M libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/seekoff.pass.cpp
    M libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/test.pass.cpp
    R libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow.dat
    M libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow.pass.cpp
    R libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/underflow_utf8.dat
    M libcxx/test/std/utilities/charconv/charconv.msvc/test.cpp
    M libcxx/test/support/test_macros.h
    M libcxx/utils/ci/buildkite-pipeline.yml
    M libcxx/utils/ci/run-buildbot
    M libcxx/utils/generate_header_tests.py
    M libcxx/utils/libcxx/test/features.py

  Log Message:
  -----------
  [libc++] Introduce a setting to remove fstream from the library

This allows porting the library to platforms that are able to support
<iostream> but that do not have a notion of a filesystem, and where it
hence doesn't make sense to support std::fstream (and never will).

Also, remove reliance on <fstream> in various tests that didn't
actually need it.

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




More information about the All-commits mailing list