[libc++] Move preferred_name declarations into the forward declaring headers and...
authorNikolas Klauser <nikolasklauser@berlin.de>
Wed, 12 Oct 2022 23:03:58 +0000 (01:03 +0200)
committerNikolas Klauser <nikolasklauser@berlin.de>
Mon, 31 Oct 2022 23:36:54 +0000 (00:36 +0100)
commit627465cf9fa71ac1933986c20b32d6842a5b2678
tree4fd3e716065021a916dd0b361e9c2709e199fd04
parent748922b31f7f1f48af76efc66a7af0674b1c4c06
[libc++] Move preferred_name declarations into the forward declaring headers and add pmr preferred names

We currently define the preferred names in multiple places. `basic_string` and `basic_string_view` also have a lot of aliases, which makes the declarations quite long. So let's only add the preferred names in forward-declaring headers to make the implementation more readable and have all the preferred names in one place.

Reviewed By: ldionne

Spies: EricWF, krytarowski, libcxx-commits

Differential Revision: https://reviews.llvm.org/D135824
13 files changed:
libcxx/include/CMakeLists.txt
libcxx/include/__fwd/memory_resource.h [new file with mode: 0644]
libcxx/include/__fwd/string.h [new file with mode: 0644]
libcxx/include/__fwd/string_view.h
libcxx/include/iosfwd
libcxx/include/module.modulemap.in
libcxx/include/regex
libcxx/include/string
libcxx/include/string_view
libcxx/test/libcxx/private_headers.verify.cpp
libcxx/test/std/utilities/utility/mem.res/mem.res.aliases/header_regex_synop.pass.cpp
libcxx/test/std/utilities/utility/mem.res/mem.res.aliases/header_string_synop.pass.cpp
libcxx/test/std/utilities/utility/mem.res/mem.res.aliases/header_string_synop2.pass.cpp