Skip to content

Commit 3fb4818

Browse files
committed
[ATFE] Remove Downstream Change which enables fstream independently of filesystem.
With the merging of llvm/llvm-project#147956 upstream, the downstream patch is not required anymore.
1 parent 9261e2d commit 3fb4818

File tree

15 files changed

+3
-46
lines changed

15 files changed

+3
-46
lines changed

libcxx/include/fstream

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ typedef basic_fstream<wchar_t> wfstream;
191191
#else
192192
# include <__config>
193193

194-
// Downstream issue: #375 (Enable fstream independently of filesystem)
195-
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION || defined(_NEWLIB_VERSION)
194+
# if _LIBCPP_HAS_FILESYSTEM && _LIBCPP_HAS_LOCALIZATION
196195

197196
# include <__algorithm/max.h>
198197
# include <__assert>

libcxx/src/ios.instantiations.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_stringstream<char>
3737
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ostringstream<char>;
3838
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_istringstream<char>;
3939

40-
// Downstream issue: #375 (Enable fstream independently of filesystem)
41-
#if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION)
40+
#if _LIBCPP_HAS_FILESYSTEM
4241
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ifstream<char>;
4342
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_ofstream<char>;
4443
template class _LIBCPP_CLASS_TEMPLATE_INSTANTIATION_VIS basic_filebuf<char>;

libcxx/src/ostream.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
#include <__config>
1010

11-
// Downstream issue: #375 (Enable fstream independently of filesystem)
12-
#if _LIBCPP_HAS_FILESYSTEM || defined(_NEWLIB_VERSION)
11+
#if _LIBCPP_HAS_FILESYSTEM
1312
# include <fstream>
1413
#endif
1514
#include <ostream>

libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/native_handle.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// class basic_filebuf;
1414

1515
// native_handle_type native_handle() const noexcept;
16-
// Downstream issue: #375 (Enable fstream independently of filesystem)
17-
// UNSUPPORTED: baremetal
1816

1917
#include <cassert>
2018
#include <fstream>

libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_pointer.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// XFAIL: (!c++03 && !c++11 && !c++14 && !c++17 && !c++20) && using-built-library-before-llvm-18
1515

1616
// XFAIL: LIBCXX-AIX-FIXME
17-
// Downstream issue: #375 (Enable fstream independently of filesystem)
18-
// UNSUPPORTED: baremetal
1917

2018
#include <fstream>
2119
#include <cassert>

libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/pointer.pass.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
// XFAIL: LIBCXX-AIX-FIXME
2020

21-
// Downstream issue: #375 (Enable fstream independently of filesystem)
22-
// UNSUPPORTED: baremetal
23-
2421
#include <fstream>
2522
#include <cassert>
2623

libcxx/test/std/input.output/file.streams/fstreams/fstream.members/native_handle.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// class basic_fstream;
1414

1515
// native_handle_type native_handle() const noexcept;
16-
// Downstream issue: #375 (Enable fstream independently of filesystem)
17-
// UNSUPPORTED: baremetal
1816

1917
#include "test_macros.h"
2018
#include "../native_handle_test_helpers.h"

libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_pointer.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
// XFAIL: (!c++03 && !c++11 && !c++14 && !c++17 && !c++20) && using-built-library-before-llvm-18
1818

1919
// XFAIL: LIBCXX-AIX-FIXME
20-
// Downstream issue: #375 (Enable fstream independently of filesystem)
21-
// UNSUPPORTED: baremetal
2220

2321
#include <fstream>
2422
#include <cassert>

libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/native_handle.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
// class basic_ifstream;
1414

1515
// native_handle_type native_handle() const noexcept;
16-
// Downstream issue: #375 (Enable fstream independently of filesystem)
17-
// UNSUPPORTED: baremetal
1816

1917
#include "test_macros.h"
2018
#include "../native_handle_test_helpers.h"

libcxx/test/std/input.output/file.streams/fstreams/ifstream.members/offset_range.pass.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@
2626
// meaning it can represent file sizes up to 2GB (2^31 bytes) only.
2727
//
2828
// UNSUPPORTED: target=armv7-unknown-linux-gnueabihf
29-
// Downstream issue: #375 (Enable fstream independently of filesystem)
30-
// UNSUPPORTED: baremetal
31-
3229

3330
#include <fstream>
3431
#include <iostream>

0 commit comments

Comments
 (0)