[libcxx-commits] [libcxx] [libc++] Properly guard std::filesystem with >= C++17 (PR #72701)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 23 15:01:02 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 0a9c6bea6b08538e6e910ec13dd83b8f04530835 835e2f50062929823bf08e84c77c418c649bbe34 -- libcxx/benchmarks/filesystem.bench.cpp libcxx/include/__chrono/file_clock.h libcxx/include/__config libcxx/include/__filesystem/copy_options.h libcxx/include/__filesystem/directory_entry.h libcxx/include/__filesystem/directory_iterator.h libcxx/include/__filesystem/directory_options.h libcxx/include/__filesystem/file_status.h libcxx/include/__filesystem/file_time_type.h libcxx/include/__filesystem/file_type.h libcxx/include/__filesystem/filesystem_error.h libcxx/include/__filesystem/operations.h libcxx/include/__filesystem/path.h libcxx/include/__filesystem/path_iterator.h libcxx/include/__filesystem/perm_options.h libcxx/include/__filesystem/perms.h libcxx/include/__filesystem/recursive_directory_iterator.h libcxx/include/__filesystem/space_info.h libcxx/include/__filesystem/u8path.h libcxx/include/fstream libcxx/src/filesystem/directory_entry.cpp libcxx/src/filesystem/file_descriptor.h libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/last_write_time.pass.cpp libcxx/test/libcxx/input.output/filesystems/class.path/path.itr/assert.iterator.pass.cpp libcxx/test/libcxx/input.output/filesystems/class.path/path.member/path.native.obs/string_alloc.pass.cpp libcxx/test/libcxx/input.output/filesystems/class.path/path.req/is_pathable.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/copy.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/copy_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/default_const.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/move.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/move_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/path.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.io/directory_entry.io.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/assign.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/refresh.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/replace_filename.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/comparisons.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/file_size.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/file_type_obs.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/hard_link_count.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/last_write_time.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/path.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/status.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/symlink_status.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/copy.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/copy_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/ctor.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/equal.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/increment.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/move.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/move_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/begin_end.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/iterator_concept_conformance.compile.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/range_concept_conformance.compile.pass.cpp libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp libcxx/test/std/input.output/filesystems/class.file_status/file_status.cons.pass.cpp libcxx/test/std/input.output/filesystems/class.file_status/file_status.mods.pass.cpp libcxx/test/std/input.output/filesystems/class.file_status/file_status.obs.pass.cpp libcxx/test/std/input.output/filesystems/class.file_status/file_status.status.eq.ops.cpp libcxx/test/std/input.output/filesystems/class.filesystem_error/filesystem_error.members.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.append.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/copy.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/move.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.assign/source.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.charconv.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.compare.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.concat.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/copy.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/default.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/move.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.construct/source.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/empty.verify.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_normal.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.gen/lexically_relative_and_proximate.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/generic_string_alloc.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.generic.obs/named_overloads.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.hash_enabled.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/clear.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/make_preferred.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_extension.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/swap.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/c_str.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/named_overloads.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/native.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.native.obs/operator_string.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.member/path.query/tested_in_path_decompose.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/append_op.verify.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops.verify.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/comparison_ops_tested_elsewhere.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.io.unicode_bug.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path.nonmember/swap.pass.cpp libcxx/test/std/input.output/filesystems/class.path/path_helper.h libcxx/test/std/input.output/filesystems/class.path/range_concept_conformance.compile.pass.cpp libcxx/test/std/input.output/filesystems/class.path/synop.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/range_concept_conformance.compile.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/copy.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/copy_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/ctor.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/depth.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/disable_recursion_pending.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/equal.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/increment.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/move.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/move_assign.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/pop.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/recursion_pending.pass.cpp libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.nonmembers/begin_end.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.copy_options.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.directory_options.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.file_type.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.path.format.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.perm_options.pass.cpp libcxx/test/std/input.output/filesystems/fs.enum/enum.perms.pass.cpp libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type.pass.cpp libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/file_time_type_resolution.compile.pass.cpp libcxx/test/std/input.output/filesystems/fs.filesystem.synopsis/space_info.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/absolute.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/canonical.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/copy.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/copy_file.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/copy_file_large.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_symlink/copy_symlink.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory_symlink/create_directory_symlink.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_hard_link/create_hard_link.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_symlink/create_symlink.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/current_path.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.equivalent/equivalent.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/file_size.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.hard_lk_ct/hard_link_count.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_block_file/is_block_file.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_char_file/is_character_file.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_directory/is_directory.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_empty/is_empty.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_fifo/is_fifo.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_other/is_other.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_regular_file/is_regular_file.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_socket/is_socket.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_symlink/is_symlink.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/proximate.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.read_symlink/read_symlink.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/relative.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove/remove.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/remove_all.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.remove_all/toctou.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/rename.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.resize_file/resize_file.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/space.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status/status.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status_known/status_known.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/symlink_status.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/temp_directory_path.pass.cpp libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/weakly_canonical.pass.cpp libcxx/test/support/filesystem_test_helper.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__filesystem/directory_entry.h b/libcxx/include/__filesystem/directory_entry.h
index c538f62a5e..c08e871d80 100644
--- a/libcxx/include/__filesystem/directory_entry.h
+++ b/libcxx/include/__filesystem/directory_entry.h
@@ -103,8 +103,7 @@ public:
_LIBCPP_INLINE_VISIBILITY
operator const _Path&() const noexcept { return __p_; }
- _LIBCPP_INLINE_VISIBILITY
- bool exists() const { return filesystem::exists(file_status{__get_ft()}); }
+ _LIBCPP_INLINE_VISIBILITY bool exists() const { return filesystem::exists(file_status{__get_ft()}); }
_LIBCPP_INLINE_VISIBILITY
bool exists(error_code& __ec) const noexcept {
@@ -143,8 +142,7 @@ public:
return __get_ft(&__ec) == file_type::fifo;
}
- _LIBCPP_INLINE_VISIBILITY
- bool is_other() const { return filesystem::is_other(file_status{__get_ft()}); }
+ _LIBCPP_INLINE_VISIBILITY bool is_other() const { return filesystem::is_other(file_status{__get_ft()}); }
_LIBCPP_INLINE_VISIBILITY
bool is_other(error_code& __ec) const noexcept {
@@ -441,8 +439,7 @@ private:
file_status __st(__get_ft(&__m_ec));
__handle_error("in directory_entry::file_size", __ec, __m_ec);
if (filesystem::exists(__st) && !filesystem::is_regular_file(__st)) {
- errc __err_kind = filesystem::is_directory(__st) ? errc::is_a_directory
- : errc::not_supported;
+ errc __err_kind = filesystem::is_directory(__st) ? errc::is_a_directory : errc::not_supported;
__handle_error("in directory_entry::file_size", __ec,
make_error_code(__err_kind));
}
@@ -484,8 +481,7 @@ private:
error_code __m_ec;
file_status __st(__get_ft(&__m_ec));
__handle_error("in directory_entry::last_write_time", __ec, __m_ec);
- if (filesystem::exists(__st) &&
- __data_.__write_time_ == file_time_type::min())
+ if (filesystem::exists(__st) && __data_.__write_time_ == file_time_type::min())
__handle_error("in directory_entry::last_write_time", __ec,
make_error_code(errc::value_too_large));
return __data_.__write_time_;
diff --git a/libcxx/include/__filesystem/directory_iterator.h b/libcxx/include/__filesystem/directory_iterator.h
index 9c611a38cf..1060cddbb2 100644
--- a/libcxx/include/__filesystem/directory_iterator.h
+++ b/libcxx/include/__filesystem/directory_iterator.h
@@ -155,14 +155,14 @@ _LIBCPP_END_NAMESPACE_FILESYSTEM
#if _LIBCPP_STD_VER >= 20
template <>
-_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY
-inline constexpr bool _VSTD::ranges::enable_borrowed_range<std::filesystem::directory_iterator> = true;
+_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY inline constexpr bool
+ _VSTD::ranges::enable_borrowed_range<std::filesystem::directory_iterator> = true;
template <>
-_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY
-inline constexpr bool _VSTD::ranges::enable_view<std::filesystem::directory_iterator> = true;
+_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY inline constexpr bool
+ _VSTD::ranges::enable_view<std::filesystem::directory_iterator> = true;
-#endif // _LIBCPP_STD_VER >= 20
+# endif // _LIBCPP_STD_VER >= 20
#endif // _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM)
diff --git a/libcxx/include/__filesystem/recursive_directory_iterator.h b/libcxx/include/__filesystem/recursive_directory_iterator.h
index 056233bc83..b6fbe9a0c7 100644
--- a/libcxx/include/__filesystem/recursive_directory_iterator.h
+++ b/libcxx/include/__filesystem/recursive_directory_iterator.h
@@ -169,14 +169,14 @@ _LIBCPP_END_NAMESPACE_FILESYSTEM
#if _LIBCPP_STD_VER >= 20
template <>
-_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY
-inline constexpr bool _VSTD::ranges::enable_borrowed_range<std::filesystem::recursive_directory_iterator> = true;
+_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY inline constexpr bool
+ _VSTD::ranges::enable_borrowed_range<std::filesystem::recursive_directory_iterator> = true;
template <>
-_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY
-inline constexpr bool _VSTD::ranges::enable_view<std::filesystem::recursive_directory_iterator> = true;
+_LIBCPP_AVAILABILITY_FILESYSTEM_LIBRARY inline constexpr bool
+ _VSTD::ranges::enable_view<std::filesystem::recursive_directory_iterator> = true;
-#endif // _LIBCPP_STD_VER >= 20
+# endif // _LIBCPP_STD_VER >= 20
#endif // _LIBCPP_STD_VER >= 17 && !defined(_LIBCPP_HAS_NO_FILESYSTEM)
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
index 47a8d1bdcb..ace9dc93be 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/default_ctor.pass.cpp
@@ -16,7 +16,6 @@
// directory_iterator::directory_iterator() noexcept
-
#include <filesystem>
#include <type_traits>
#include <cassert>
diff --git a/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp b/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
index 46bd6d11ff..3eb6462fcb 100644
--- a/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.directory_iterator/types.pass.cpp
@@ -28,7 +28,6 @@
#include "test_macros.h"
namespace fs = std::filesystem;
-
int main(int, char**) {
using namespace fs;
using D = directory_iterator;
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
index 120b0ee953..b83b6fe703 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
@@ -18,7 +18,6 @@
// template <class InputIterator>
// path(InputIterator first, InputIterator last);
-
#include <filesystem>
#include <cassert>
#include <iterator>
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
index 6013172e0c..274659f4bd 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.decompose/path.decompose.pass.cpp
@@ -43,7 +43,6 @@
// iterator begin() const;
// iterator end() const;
-
#include <filesystem>
#include <algorithm>
#include <cassert>
``````````
</details>
https://github.com/llvm/llvm-project/pull/72701
More information about the libcxx-commits
mailing list