Lines Matching refs:EC
109 std::error_code &EC) override {
289 std::error_code EC;
291 EC = llvm::sys::fs::createUniqueDirectory(Name, Path);
294 EC = llvm::sys::fs::create_directory(Twine(Path));
296 if (EC)
298 EXPECT_FALSE(EC);
312 std::error_code EC;
313 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory), EC);
314 ASSERT_FALSE(EC);
322 I = FS->dir_begin(Twine(TestDirectory), EC);
323 ASSERT_FALSE(EC);
327 I.increment(EC);
328 ASSERT_FALSE(EC);
331 I.increment(EC);
339 std::error_code EC;
340 auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
341 ASSERT_FALSE(EC);
349 I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC);
350 ASSERT_FALSE(EC);
354 for (auto E = vfs::recursive_directory_iterator(); !EC && I != E;
355 I.increment(EC)) {
376 std::error_code EC;
382 for (DirIter E; !EC && I != E; I.increment(EC))
401 std::error_code EC;
402 checkContents(O->dir_begin("/", EC), ArrayRef<StringRef>());
405 checkContents(O->dir_begin("/", EC), ArrayRef<StringRef>("/file1"));
408 checkContents(O->dir_begin("/", EC), {"/file2", "/file1"});
414 checkContents(O->dir_begin("/dir2", EC), ArrayRef<StringRef>("/dir2/foo"));
415 checkContents(O->dir_begin("/", EC), {"/dir2", "/file2", "/dir1", "/file1"});
427 std::error_code EC;
428 checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
432 checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
437 checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
452 checkContents(vfs::recursive_directory_iterator(*O, "/dir2", EC),
454 checkContents(vfs::recursive_directory_iterator(*O, "/", EC),
469 std::error_code EC;
470 checkContents(O->dir_begin("/", EC), ArrayRef<StringRef>());
473 checkContents(O->dir_begin("/", EC
477 checkContents(O->dir_begin("/", EC), {"/file3", "/file2", "/file1"});
489 std::error_code EC;
499 O->dir_begin("/", EC),
504 std::error_code EC;
505 vfs::directory_iterator I = O->dir_begin("/", EC), E;
506 for ( ; !EC && I != E; I.increment(EC))
513 std::error_code EC;
514 vfs::directory_iterator I = O->dir_begin("/", EC), E;
515 for ( ; !EC && I != E; I.increment(EC))
613 std::error_code EC;
614 vfs::directory_iterator I = FS.dir_begin("/", EC);
615 ASSERT_FALSE(EC);
617 I.increment(EC);
618 ASSERT_FALSE(EC);
620 I.increment(EC);
621 ASSERT_FALSE(EC);
624 I = FS.dir_begin("/b", EC);
625 ASSERT_FALSE(EC);
627 I.increment(EC);
628 ASSERT_FALSE(EC);
1070 std::error_code EC;
1071 checkContents(O->dir_begin("//root/", EC),
1074 checkContents(O->dir_begin("//root/foo/bar", EC),
1120 std::error_code EC;
1122 checkContents(O->dir_begin("//root/baz/", EC),
1155 std::error_code EC;
1159 *O, "//root", EC), E;
1160 ASSERT_FALSE(EC);
1161 for (int l = 0; I != E; I.increment(EC), ++l) {
1162 ASSERT_FALSE(EC);