[libcxx-commits] [PATCH] D139270: [libc++] Rename __tuple to __tuple2 to avoid file collision

Michał Górny via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Dec 3 23:09:03 PST 2022


mgorny created this revision.
mgorny added reviewers: philnik, ldionne, libc++.
Herald added a project: All.
mgorny requested review of this revision.

Rename the `__tuple` directory in libc++ headers to `__tuple2` to avoid
file collision when installing.  Historically, `__tuple` has been
a file and it has been replaced by a directory
in 2d52c6bfae801b016dd3627b8c0e7c4a99405549 <https://reviews.llvm.org/rG2d52c6bfae801b016dd3627b8c0e7c4a99405549>.  Replacing a regular file
with a directory (or more importantly, the other way around when
downgrading) is not universally supported.  Since this is an internal
header, its actual name should not matter, so just rename it to avoid
problems.


https://reviews.llvm.org/D139270

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__functional/hash.h
  libcxx/include/__fwd/get.h
  libcxx/include/__memory/compressed_pair.h
  libcxx/include/__ranges/subrange.h
  libcxx/include/__tuple/apply_cv.h
  libcxx/include/__tuple/make_tuple_types.h
  libcxx/include/__tuple/sfinae_helpers.h
  libcxx/include/__tuple/tuple_element.h
  libcxx/include/__tuple/tuple_indices.h
  libcxx/include/__tuple/tuple_like.h
  libcxx/include/__tuple/tuple_size.h
  libcxx/include/__tuple/tuple_types.h
  libcxx/include/__tuple2/apply_cv.h
  libcxx/include/__tuple2/make_tuple_types.h
  libcxx/include/__tuple2/sfinae_helpers.h
  libcxx/include/__tuple2/tuple_element.h
  libcxx/include/__tuple2/tuple_indices.h
  libcxx/include/__tuple2/tuple_like.h
  libcxx/include/__tuple2/tuple_size.h
  libcxx/include/__tuple2/tuple_types.h
  libcxx/include/__utility/pair.h
  libcxx/include/array
  libcxx/include/libcxx.imp
  libcxx/include/module.modulemap.in
  libcxx/include/optional
  libcxx/include/ranges
  libcxx/include/utility

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139270.479900.patch
Type: text/x-patch
Size: 10709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20221204/bf8e92db/attachment-0001.bin>


More information about the libcxx-commits mailing list