[all-commits] [llvm/llvm-project] 21853b: [libc++][filesystem] Avoid using anonymous namespa...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Jun 26 06:35:49 PDT 2023


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

  Changed paths:
    M libcxx/src/filesystem/error.h
    M libcxx/src/filesystem/file_descriptor.h
    M libcxx/src/filesystem/format_string.h
    M libcxx/src/filesystem/operations.cpp
    M libcxx/src/filesystem/path_parser.h
    M libcxx/src/filesystem/posix_compat.h
    M libcxx/src/filesystem/time_utils.h

  Log Message:
  -----------
  [libc++][filesystem] Avoid using anonymous namespaces in support headers

This avoids using anonymous namespaces in headers and ensures that
the various helper functions get deduplicated across the TUs
implementing <filesystem>. Otherwise, we'd get a definition of
these helper functions in each TU where they are used, which is
entirely unnecessary.

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




More information about the All-commits mailing list