[all-commits] [llvm/llvm-project] c7d3c8: [libc++] Split sources for <filesystem>

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Jun 19 06:07:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7d3c84449f403716a8866e50491a1860a935b30
      https://github.com/llvm/llvm-project/commit/c7d3c84449f403716a8866e50491a1860a935b30
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2023-06-19 (Mon, 19 Jun 2023)

  Changed paths:
    M libcxx/src/CMakeLists.txt
    A libcxx/src/filesystem/directory_entry.cpp
    M libcxx/src/filesystem/directory_iterator.cpp
    A libcxx/src/filesystem/error.h
    A libcxx/src/filesystem/file_descriptor.h
    A libcxx/src/filesystem/filesystem_clock.cpp
    R libcxx/src/filesystem/filesystem_common.h
    A libcxx/src/filesystem/filesystem_error.cpp
    A libcxx/src/filesystem/format_string.h
    M libcxx/src/filesystem/operations.cpp
    A libcxx/src/filesystem/path.cpp
    A libcxx/src/filesystem/path_parser.h
    M libcxx/src/filesystem/posix_compat.h
    A libcxx/src/filesystem/time_utils.h
    M libcxx/test/libcxx/input.output/filesystems/class.directory_entry/directory_entry.mods/last_write_time.pass.cpp
    M libcxx/test/libcxx/input.output/filesystems/convert_file_time.pass.cpp
    M libcxx/utils/data/ignore_format.txt

  Log Message:
  -----------
  [libc++] Split sources for <filesystem>

The operations.cpp file contained the implementation of a ton of
functionality unrelated to just the filesystem operations, and
filesystem_common.h contained a lot of unrelated functionality as well.

Splitting this up into more files will make it possible in the future
to support parts of <filesystem> (e.g. path) on systems where there is
no notion of a filesystem.

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




More information about the All-commits mailing list