Home
last modified time | relevance | path

Searched refs:directory_iterator (Results 1 – 25 of 43) sorted by relevance

12

/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
Dctor.pass.cpp36 using D = directory_iterator; in TEST_CASE()
65 const directory_iterator endIt; in TEST_CASE()
71 directory_iterator it(testPath, ec); in TEST_CASE()
76 directory_iterator it(testPath, opts, ec); in TEST_CASE()
81 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath)); in TEST_CASE()
82 TEST_CHECK_THROW(filesystem_error, directory_iterator(testPath, opts)); in TEST_CASE()
98 directory_iterator it(testDir); in TEST_CASE()
99 TEST_REQUIRE(it != directory_iterator{}); in TEST_CASE()
108 directory_iterator it(testDir, ec); in TEST_CASE()
110 TEST_CHECK(it == directory_iterator{}); in TEST_CASE()
[all …]
Dmove_assign.pass.cpp39 using D = directory_iterator; in TEST_CASE()
47 directory_iterator from(testDir); in TEST_CASE()
48 TEST_REQUIRE(from != directory_iterator{}); in TEST_CASE()
51 directory_iterator to{}; in TEST_CASE()
53 TEST_REQUIRE(to != directory_iterator{}); in TEST_CASE()
62 directory_iterator from{}; in TEST_CASE()
64 directory_iterator to(testDir); in TEST_CASE()
68 TEST_REQUIRE(to == directory_iterator{}); in TEST_CASE()
69 TEST_REQUIRE(from == directory_iterator{}); in TEST_CASE()
75 const directory_iterator endIt{}; in TEST_CASE()
[all …]
Dcopy_assign.pass.cpp33 using D = directory_iterator; in TEST_CASE()
41 const directory_iterator from(testDir); in TEST_CASE()
42 TEST_REQUIRE(from != directory_iterator{}); in TEST_CASE()
45 directory_iterator to{}; in TEST_CASE()
57 const directory_iterator from{}; in TEST_CASE()
59 directory_iterator to(testDir); in TEST_CASE()
60 TEST_REQUIRE(to != directory_iterator{}); in TEST_CASE()
64 TEST_CHECK(to == directory_iterator{}); in TEST_CASE()
70 const directory_iterator endIt{}; in TEST_CASE()
72 directory_iterator it_obj(testDir); in TEST_CASE()
[all …]
Dincrement.pass.cpp35 directory_iterator d; ((void)d); in TEST_CASE()
38 ASSERT_SAME_TYPE(decltype(++d), directory_iterator&); in TEST_CASE()
41 ASSERT_SAME_TYPE(decltype(d.increment(ec)), directory_iterator&); in TEST_CASE()
50 const directory_iterator endIt{}; in TEST_CASE()
53 directory_iterator it(testDir, ec); in TEST_CASE()
61 directory_iterator& it_ref = ++it; in TEST_CASE()
73 const directory_iterator endIt{}; in TEST_CASE()
76 directory_iterator it(testDir, ec); in TEST_CASE()
97 const directory_iterator endIt{}; in TEST_CASE()
100 directory_iterator it(testDir, ec); in TEST_CASE()
[all …]
Dmove.pass.cpp33 using D = directory_iterator; in TEST_CASE()
39 const directory_iterator endIt; in TEST_CASE()
40 directory_iterator endIt2{}; in TEST_CASE()
42 directory_iterator it(std::move(endIt2)); in TEST_CASE()
50 const directory_iterator endIt{}; in TEST_CASE()
52 directory_iterator it(testDir); in TEST_CASE()
56 const directory_iterator it2(std::move(it)); in TEST_CASE()
Dcopy.pass.cpp33 using D = directory_iterator; in TEST_CASE()
39 const directory_iterator endIt; in TEST_CASE()
40 directory_iterator it(endIt); in TEST_CASE()
47 const directory_iterator endIt{}; in TEST_CASE()
49 const directory_iterator it(testDir); in TEST_CASE()
53 const directory_iterator it2(it); in TEST_CASE()
Ddefault_ctor.pass.cpp28 static_assert(std::is_nothrow_default_constructible<fs::directory_iterator>::value, ""); in main()
31 fs::directory_iterator d1; in main()
32 const fs::directory_iterator d2; in main()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DFileSystem.h485 class directory_iterator {
490 friend error_code directory_iterator_construct(directory_iterator &it,
492 friend error_code directory_iterator_increment(directory_iterator &it);
493 friend error_code directory_iterator_destruct(directory_iterator &it);
496 explicit directory_iterator(const Twine &path, error_code &ec) in directory_iterator() function
503 directory_iterator() : IterationHandle(0) {} in directory_iterator() function
505 ~directory_iterator() { in ~directory_iterator()
510 directory_iterator &increment(error_code &ec) { in increment()
518 bool operator!=(const directory_iterator &RHS) const {
535 directory_iterator &increment(error_code &ec);
/external/clang/include/clang/Basic/
DVirtualFileSystem.h123 class directory_iterator {
127 directory_iterator(std::shared_ptr<detail::DirIterImpl> I) in directory_iterator() function
135 directory_iterator() { } in directory_iterator() function
138 directory_iterator &increment(std::error_code &EC) { in increment()
149 bool operator==(const directory_iterator &RHS) const {
154 bool operator!=(const directory_iterator &RHS) const {
164 typedef std::stack<directory_iterator, std::vector<directory_iterator>>
214 virtual directory_iterator dir_begin(const Twine &Dir,
268 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
312 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.nonmembers/
Dbegin_end.pass.cpp35 directory_iterator d; ((void)d); in TEST_CASE()
37 ASSERT_SAME_TYPE(decltype(begin(d)), directory_iterator); in TEST_CASE()
40 ASSERT_SAME_TYPE(decltype(end(d)), directory_iterator); in TEST_CASE()
51 directory_iterator it(testDir, ec); in TEST_CASE()
/external/llvm/include/llvm/Support/
DFileSystem.h779 class directory_iterator {
783 explicit directory_iterator(const Twine &path, std::error_code &ec) { in directory_iterator() function
790 explicit directory_iterator(const directory_entry &de, std::error_code &ec) { in directory_iterator() function
796 directory_iterator() : State(nullptr) {} in directory_iterator() function
799 directory_iterator &increment(std::error_code &ec) { in increment()
807 bool operator==(const directory_iterator &RHS) const {
817 bool operator!=(const directory_iterator &RHS) const {
832 std::stack<directory_iterator, std::vector<directory_iterator> > Stack;
847 State->Stack.push(directory_iterator(path, ec)); in recursive_directory_iterator()
848 if (State->Stack.top() == directory_iterator()) in recursive_directory_iterator()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DFileSystem.h790 class directory_iterator {
794 explicit directory_iterator(const Twine &path, std::error_code &ec) { in directory_iterator() function
801 explicit directory_iterator(const directory_entry &de, std::error_code &ec) { in directory_iterator() function
807 directory_iterator() : State(nullptr) {} in directory_iterator() function
810 directory_iterator &increment(std::error_code &ec) { in increment()
818 bool operator==(const directory_iterator &RHS) const {
828 bool operator!=(const directory_iterator &RHS) const {
843 std::stack<directory_iterator, std::vector<directory_iterator>> Stack;
858 State->Stack.push(directory_iterator(path, ec)); in recursive_directory_iterator()
859 if (State->Stack.top() == directory_iterator()) in recursive_directory_iterator()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DFileSystem.h1152 class directory_iterator {
1157 explicit directory_iterator(const Twine &path, std::error_code &ec,
1167 explicit directory_iterator(const directory_entry &de, std::error_code &ec,
1177 directory_iterator() = default;
1180 directory_iterator &increment(std::error_code &ec) { in increment()
1189 bool operator==(const directory_iterator &RHS) const {
1199 bool operator!=(const directory_iterator &RHS) const {
1228 std::stack<directory_iterator, std::vector<directory_iterator>> Stack;
1247 State->Stack.push(directory_iterator(path, ec, Follow)); in State()
1248 if (State->Stack.top() == directory_iterator()) in State()
[all …]
/external/libcxx/src/filesystem/
Ddirectory_iterator.cpp234 directory_iterator::directory_iterator(const path& p, error_code* ec, in directory_iterator() function in directory_iterator
249 directory_iterator& directory_iterator::__increment(error_code* ec) { in __increment()
263 directory_entry const& directory_iterator::__dereference() const { in __dereference()
331 const directory_iterator end_it; in __advance()
Doperations.cpp619 directory_iterator it = in __copy()
620 ec ? directory_iterator(from, *ec) : directory_iterator(from); in __copy()
625 for (; it != directory_iterator(); it.increment(m_ec2)) { in __copy()
982 auto it = ec ? directory_iterator(p, *ec) : directory_iterator(p); in __fs_is_empty()
985 return it == directory_iterator{}; in __fs_is_empty()
1122 for (directory_iterator it(p, ec); !ec && it != directory_iterator(); in remove_all_impl()
/external/clang/lib/Basic/
DVirtualFileSystem.cpp200 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override;
253 llvm::sys::fs::directory_iterator Iter;
257 if (!EC && Iter != llvm::sys::fs::directory_iterator()) { in RealFSDirIter()
270 } else if (Iter == llvm::sys::fs::directory_iterator()) { in increment()
282 directory_iterator RealFileSystem::dir_begin(const Twine &Dir, in dir_begin()
284 return directory_iterator(std::make_shared<RealFSDirIter>(Dir, EC)); in dir_begin()
342 directory_iterator CurrentDirIter;
353 if (CurrentDirIter != directory_iterator()) in incrementFS()
360 assert((IsFirstTime || CurrentDirIter != directory_iterator()) && in incrementDirIter()
365 if (!EC && CurrentDirIter == directory_iterator()) in incrementDirIter()
[all …]
/external/libcxx/include/
Dfilesystem48 class directory_iterator;
50 // enable directory_iterator range-based for statements
51 directory_iterator begin(directory_iterator iter) noexcept;
52 directory_iterator end(const directory_iterator&) noexcept;
1939 class directory_iterator;
2148 friend class directory_iterator;
2393 friend class directory_iterator;
2401 class directory_iterator {
2411 directory_iterator() noexcept {}
2413 explicit directory_iterator(const path& __p)
[all …]
/external/libcxx/include/experimental/
Dfilesystem48 class directory_iterator;
50 // enable directory_iterator range-based for statements
51 directory_iterator begin(directory_iterator iter) noexcept;
52 directory_iterator end(const directory_iterator&) noexcept;
/external/clang/unittests/Basic/
DVirtualFileSystemTest.cpp108 vfs::directory_iterator dir_begin(const Twine &Dir, in dir_begin()
110 return vfs::directory_iterator( in dir_begin()
313 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
315 EXPECT_EQ(vfs::directory_iterator(), I); // empty directory is empty in TEST()
324 ASSERT_NE(vfs::directory_iterator(), I); in TEST()
329 ASSERT_NE(vfs::directory_iterator(), I); in TEST()
332 EXPECT_EQ(vfs::directory_iterator(), I); in TEST()
505 vfs::directory_iterator I = O->dir_begin("/", EC), E; in TEST()
514 vfs::directory_iterator I = O->dir_begin("/", EC), E; in TEST()
614 vfs::directory_iterator I = FS.dir_begin("/", EC); in TEST_F()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/
Dtypes.pass.cpp31 using D = directory_iterator; in main()
/external/llvm/lib/Support/
DCachePruning.cpp107 for (sys::fs::directory_iterator File(CachePathNative, EC), FileEnd; in prune()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/dsymutil/
Ddsymutil.cpp380 llvm::sys::fs::directory_iterator DirIt(BundlePath, EC); in getInputs()
381 llvm::sys::fs::directory_iterator DirEnd; in getInputs()
/external/swiftshader/third_party/LLVM/lib/Support/Unix/
DPathV2.inc442 error_code directory_iterator_construct(directory_iterator &it, StringRef path){
455 error_code directory_iterator_destruct(directory_iterator& it) {
463 error_code directory_iterator_increment(directory_iterator& it) {
/external/llvm/tools/llvm-dwarfdump/
Dllvm-dwarfdump.cpp125 for (sys::fs::directory_iterator Dir(BundlePath, EC), DirEnd; in expandBundle()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DCachePruning.cpp197 for (sys::fs::directory_iterator File(CachePathNative, EC), FileEnd; in pruneCache()

12