forked from OSchip/llvm-project
998a5c8831
This patch implements the <filesystem> header and uses that to provide <experimental/filesystem>. Unlike other standard headers, the symbols needed for <filesystem> have not yet been placed in libc++.so. Instead they live in the new libc++fs.a library. Users of filesystem are required to link this library. (Also note that libc++experimental no longer contains the definition of <experimental/filesystem>, which now requires linking libc++fs). The reason for keeping <filesystem> out of the dylib for now is that it's still somewhat experimental, and the possibility of requiring an ABI breaking change is very real. In the future the symbols will likely be moved into the dylib, or the dylib will be made to link libc++fs automagically). Note that moving the symbols out of libc++experimental may break user builds until they update to -lc++fs. This should be OK, because the experimental library provides no stability guarantees. However, I plan on looking into ways we can force libc++experimental to automagically link libc++fs. In order to use a single implementation and set of tests for <filesystem>, it has been placed in a special `__fs` namespace. This namespace is inline in C++17 onward, but not before that. As such implementation is available in C++11 onward, but no filesystem namespace is present "directly", and as such name conflicts shouldn't occur in C++11 or C++14. llvm-svn: 338093 |
||
---|---|---|
.. | ||
test.support | ||
test.workarounds | ||
Counter.h | ||
DefaultOnly.h | ||
MoveOnly.h | ||
allocators.h | ||
any_helpers.h | ||
archetypes.hpp | ||
archetypes.ipp | ||
asan_testing.h | ||
assert_checkpoint.h | ||
cmpxchg_loop.h | ||
constexpr_char_traits.hpp | ||
container_test_types.h | ||
controlled_allocators.hpp | ||
coroutine_types.h | ||
count_new.hpp | ||
counting_predicates.hpp | ||
debug_mode_helper.h | ||
deleter_types.h | ||
demangle.h | ||
disable_missing_braces_warning.h | ||
emplace_constructible.h | ||
experimental_any_helpers.h | ||
external_threads.cpp | ||
filesystem_dynamic_test_helper.py | ||
filesystem_include.hpp | ||
filesystem_test_helper.hpp | ||
format_string.hpp | ||
hexfloat.h | ||
is_transparent.h | ||
min_allocator.h | ||
msvc_stdlib_force_include.hpp | ||
nasty_containers.hpp | ||
nasty_macros.hpp | ||
nothing_to_do.pass.cpp | ||
platform_support.h | ||
poisoned_hash_helper.hpp | ||
private_constructor.hpp | ||
propagate_const_helpers.h | ||
rapid-cxx-test.hpp | ||
set_windows_crt_report_mode.h | ||
test_allocator.h | ||
test_comparisons.h | ||
test_convertible.hpp | ||
test_iterators.h | ||
test_macros.h | ||
test_memory_resource.hpp | ||
test_workarounds.h | ||
tracked_value.h | ||
type_id.h | ||
unique_ptr_test_helper.h | ||
user_defined_integral.hpp | ||
uses_alloc_types.hpp | ||
variant_test_helpers.hpp | ||
verbose_assert.h |