Nikolas Klauser
7afa1598a3
[libc++] Avoid including <tuple> in compressed_pair.h
...
compressed_pair is widely used in the library, but most of the uses don't use the tuple parts. To avoid including <tuple> everywhere, use the forward declaration instead in compressed_pair.h
Reviewed By: ldionne, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D133331
2022-09-18 10:49:35 +02:00
Mark de Wever
2928b230ce
[NFC][libc++] char_traits code cleanups.
...
These cleanups were identified while working on D130295.
Reviewed By: #libc, ldionne, philnik
Differential Revision: https://reviews.llvm.org/D131185
2022-08-31 22:18:10 +02:00
Nikolas Klauser
5146b57b40
[libc++][NFC] Rename the constexpr macros
...
This was discussed on Discord with the consensus that we should rename the macros.
Reviewed By: ldionne, Mordante, var-const, avogelsgesang, jloser, #libc
Spies: libcxx-commits
Differential Revision: https://reviews.llvm.org/D131498
2022-08-19 15:35:02 +02:00
Nikolas Klauser
80c7e93a2a
[libc++] Add a bunch of missing _LIBCPP_HIDE_FROM_ABI
...
Reviewed By: ldionne, Mordante, var-const, huixie90, #libc
Spies: jloser, libcxx-commits, arichardson, miyuki
Differential Revision: https://reviews.llvm.org/D129968
2022-08-13 22:41:22 +02:00
Mark de Wever
3818b4df1e
[libc++] Uses operator<=> in string_view
...
Implements:
- LWG3432 Missing requirement for comparison_category
Implements part of:
- P1614R2 The Mothership has Landed
Reviewed By: #libc, ldionne, jloser, philnik
Differential Revision: https://reviews.llvm.org/D130295
2022-08-04 19:13:47 +02:00
Nikolas Klauser
101d1e9b3c
[libc++] Implement ranges::find_end, ranges::search{, _n}
...
Reviewed By: var-const, #libc, huixie90
Spies: thakis, h-vetinari, huixie90, libcxx-commits, mgorny
Differential Revision: https://reviews.llvm.org/D124079
2022-07-13 20:30:55 +02:00
Nikolas Klauser
1f04759316
Revert "[libc++] Implement ranges::find_end, ranges::search{, _n}"
...
This reverts commit 76a7651850
.
2022-07-13 13:41:25 +02:00
Nikolas Klauser
76a7651850
[libc++] Implement ranges::find_end, ranges::search{, _n}
...
Reviewed By: var-const, #libc, huixie90
Spies: h-vetinari, huixie90, libcxx-commits, mgorny
Differential Revision: https://reviews.llvm.org/D124079
2022-07-13 13:11:26 +02:00
Louis Dionne
ee78181f34
[libc++] Remove macros for IBM compiler
...
It's not tested or used anymore -- instead a Clang-based compiler is
used on IBM nowadays.
Differential Revision: https://reviews.llvm.org/D127650
2022-06-14 09:15:41 -04:00
Nikolas Klauser
993a22ecca
[libc++] Simplify the char_traits specializations
...
Reviewed By: ldionne, #libc
Spies: mgorny, EricWF, mclow.lists, libcxx-commits
Differential Revision: https://reviews.llvm.org/D127159
2022-06-13 21:38:13 +02:00
Nikolas Klauser
976f37050d
[libc++] Granularize __string
...
Reviewed By: ldionne, #libc
Spies: libcxx-commits, mgorny
Differential Revision: https://reviews.llvm.org/D127156
2022-06-09 21:04:18 +02:00