llvm-project/libcxx/test/std/experimental/filesystem
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
..
Inputs/static_test_env
class.directory_entry
class.directory_iterator Enable warnings by default for C++ >= 11 and fix -Wshadow occurances 2016-12-03 00:27:13 +00:00
class.file_status Implement LWG 2787 - [file_status.cons] is inconsistent 2017-03-06 21:02:06 +00:00
class.filesystem_error
class.path Diagnose when reverse_iterator is used on path::iterator. 2017-04-13 02:54:13 +00:00
class.rec.dir.itr [libcxx] [test] Fix comment typos, strip trailing whitespace. 2017-01-18 20:10:25 +00:00
fs.enum Implement LWG issue 2720. Replace perms::resolve_symlinks with perms::symlink_nofollow. 2016-06-21 22:42:42 +00:00
fs.error.report
fs.filesystem.synopsis [libcxx] [test] Fix comment typos. 2017-02-05 22:48:20 +00:00
fs.op.funcs add tests for ENAMETOOLONG 2017-02-17 01:00:37 +00:00
fs.req.macros
fs.req.namespace
lit.local.cfg