llvm-project/libcxx/test/std/experimental/filesystem/class.path/path.member
Eric Fiselier e02ed1c255 Diagnose when reverse_iterator is used on path::iterator.
path::iterator isn't a strictly conforming iterator. Specifically
it stashes the current element inside the iterator. This leads to
UB when used with reverse_iterator since it requires the element
to outlive the lifetime of the iterator.

This patch adds a static_assert inside reverse_iterator to disallow
"stashing iterator types", and it tags path::iterator as such a type.

Additionally this patch removes all uses of reverse_iterator<path::iterator>
within the tests.

llvm-svn: 300164
2017-04-13 02:54:13 +00:00
..
path.assign [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00
path.construct Implement LWG 2711. Constrain path members. 2016-08-28 21:26:01 +00:00
path.decompose Diagnose when reverse_iterator is used on path::iterator. 2017-04-13 02:54:13 +00:00
path.generic.obs
path.modifiers Enable warnings by default for C++ >= 11 and fix -Wshadow occurances 2016-12-03 00:27:13 +00:00
path.native.obs Enable warnings by default for C++ >= 11 and fix -Wshadow occurances 2016-12-03 00:27:13 +00:00
path.query
path.append.pass.cpp [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00
path.compare.pass.cpp libcxx: Fix path.compare.pass expected result 2016-08-15 21:24:50 +00:00
path.concat.pass.cpp [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00