llvm-project/libcxx/include/__iterator
Louis Dionne 8e93aa304b [libc++] Refactor the tests for std::prev, next and advance
This started as an attempt to fix a GCC 11 warning of misplaced parentheses.
I then noticed that trying to fix the parentheses warning actually triggered
errors in the tests, showing that we were incorrectly assuming that the
implementation of ranges::advance was using operator+= or operator-=.

This commit fixes that issue and makes the tests easier to follow by
localizing the assertions it makes.

Differential Revision: https://reviews.llvm.org/D103272
2021-06-14 08:13:14 -04:00
..
advance.h [libc++] Refactor the tests for std::prev, next and advance 2021-06-14 08:13:14 -04:00
concepts.h [libc++] NFC: Move indirect_concepts.h to __iterator/concepts.h 2021-06-11 12:57:04 -04:00
default_sentinel.h [libcxx][ranges] Add `default_sentinel` and `default_sentinel_t`. 2021-06-01 14:03:54 -07:00
incrementable_traits.h [libc++][NFC] Remove non-ASCII from comment. 2021-04-26 17:53:20 +02:00
iter_move.h [libc++] Re-apply `std::indirectly_readable` and `std::indirectly_writable` 2021-04-22 11:24:04 -04:00
iterator_traits.h [libc++] Rename 'and' to '&&' 2021-06-07 13:48:51 -04:00
next.h Revert "[libcxx][module-map] creates submodules for private headers" 2021-06-07 17:10:05 -07:00
prev.h Revert "[libcxx][module-map] creates submodules for private headers" 2021-06-07 17:10:05 -07:00
projected.h [libc++] NFC: Move indirect_concepts.h to __iterator/concepts.h 2021-06-11 12:57:04 -04:00
readable_traits.h [libc++][NFC] Remove non-ASCII from comment. 2021-04-26 17:53:20 +02:00