Home
last modified time | relevance | path

Searched refs:is_regular_file (Results 1 – 25 of 40) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_regular_file/
H A Dis_regular_file.pass.cpp34 ASSERT_NOEXCEPT(is_regular_file(s)); in TEST_CASE()
35 ASSERT_NOEXCEPT(is_regular_file(p, ec)); in TEST_CASE()
36 ASSERT_NOT_NOEXCEPT(is_regular_file(p)); in TEST_CASE()
59 TEST_CHECK(is_regular_file(s) == TC.expect); in TEST_CASE()
67 TEST_CHECK(is_regular_file(p) == false); in TEST_CASE()
69 TEST_CHECK(is_regular_file(p, ec) == false); in TEST_CASE()
90 TEST_CHECK(is_regular_file(p, ec) == false); in TEST_CASE()
93 TEST_CHECK_THROW(filesystem_error, is_regular_file(p)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
H A Dfile_type_obs.pass.cpp52 TEST_FUNC(is_regular_file); in TEST_CASE()
82 TEST_CHECK(e.is_regular_file() == is_regular_file(st)); in TEST_CASE()
141 TEST_CHECK(e.is_regular_file(ec) == is_regular_file(st)); in TEST_CASE()
197 TEST_CHECK(e.is_regular_file(ec) == is_regular_file(st)); in TEST_CASE()
263 TEST_CHECK(e.is_regular_file(ec) == is_regular_file(st)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/
H A Drefresh.pass.cpp125 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
134 TEST_CHECK(!ent.is_regular_file()); in TEST_CASE()
144 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
177 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
267 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
308 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
325 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
342 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
352 CHECK_ACCESS(is_regular_file, false); in TEST_CASE()
H A Dassign.pass.cpp85 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
96 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
H A Dreplace_filename.pass.cpp121 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/
H A Dcopy.pass.cpp189 TEST_CHECK(is_regular_file(expect_dest)); in TEST_CASE()
196 TEST_CHECK(is_regular_file(dest)); in TEST_CASE()
228 TEST_CHECK(is_regular_file(created)); in TEST_CASE()
241 TEST_CHECK(is_regular_file(created)); in TEST_CASE()
257 TEST_CHECK(is_regular_file(created)); in TEST_CASE()
259 TEST_CHECK(is_regular_file(nested_created)); in TEST_CASE()
/llvm-project-15.0.7/llvm/lib/Testing/Support/
H A DSupportHelpers.cpp24 if (llvm::sys::fs::is_regular_file(PathInSameDir)) in findSrcDirMap()
30 if (llvm::sys::fs::is_regular_file(PathInParentDir)) in findSrcDirMap()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/
H A Dcreate_directories.pass.cpp111 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
123 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
137 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.rename/
H A Drename.pass.cpp95 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
104 TEST_CHECK(is_regular_file(symlink_status(sym))); in TEST_CASE()
114 TEST_CHECK(is_regular_file(file3)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/include/__filesystem/
H A Doperations.h127 inline _LIBCPP_HIDE_FROM_ABI bool is_regular_file(file_status __s) noexcept { return __s.type() == … in is_regular_file() function
128 inline _LIBCPP_HIDE_FROM_ABI bool is_regular_file(const path& __p) { return is_regular_file(__statu… in is_regular_file() function
129 inline _LIBCPP_HIDE_FROM_ABI bool is_regular_file(const path& __p, error_code& __ec) noexcept { ret… in is_regular_file() function
133 …ABI bool is_other(file_status __s) noexcept { return exists(__s) && !is_regular_file(__s) && !is_d… in is_other()
H A Ddirectory_entry.h156 bool is_regular_file() const { return __get_ft() == file_type::regular; } in is_regular_file() function
159 bool is_regular_file(error_code& __ec) const noexcept { in is_regular_file() function
434 if (_VSTD_FS::exists(__st) && !_VSTD_FS::is_regular_file(__st)) {
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/
H A Dcreate_directory.pass.cpp102 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
113 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
H A Dcreate_directory_with_attributes.pass.cpp105 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
117 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/
H A Dpath.pass.cpp113 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
114 TEST_CHECK(ent_ec.is_regular_file()); in TEST_CASE()
H A Dcopy.pass.cpp69 TEST_CHECK(ent_cp.is_regular_file()); in TEST_CASE()
H A Dmove.pass.cpp67 TEST_CHECK(ent_cp.is_regular_file()); in TEST_CASE()
H A Dmove_assign.pass.cpp73 TEST_CHECK(ent_cp.is_regular_file()); in TEST_CASE()
H A Dcopy_assign.pass.cpp77 TEST_CHECK(ent_cp.is_regular_file()); in TEST_CASE()
/llvm-project-15.0.7/lld/Common/
H A DFilesystem.cpp43 if (!sys::fs::exists(path) || !sys::fs::is_regular_file(path)) in unlinkAsync()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/
H A Dcopy_file_large.pass.cpp69 TEST_REQUIRE(is_regular_file(dest)); in TEST_CASE()
/llvm-project-15.0.7/libcxx/include/
H A Dfilesystem164 bool is_regular_file(file_status s) noexcept;
165 bool is_regular_file(const path& p);
166 bool is_regular_file(const path& p, error_code& ec) noexcept;
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFileSystem.h571 bool is_regular_file(const basic_file_status &status);
580 std::error_code is_regular_file(const Twine &path, bool &result);
584 inline bool is_regular_file(const Twine &Path) { in is_regular_file() function
586 if (is_regular_file(Path, Result)) in is_regular_file()
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Doperations.cpp755 (is_directory(f) && is_regular_file(t)) || in __copy()
772 } else if (is_regular_file(f)) { in __copy()
910 if (!is_regular_file(from_st)) { in __copy_file()
927 if (to_exists && !is_regular_file(to_st)) in __copy_file()
1153 if (!exists(fst) || !is_regular_file(fst)) { in __file_size()
1183 else if (!is_directory(st) && !is_regular_file(st)) in __fs_is_empty()
1190 } else if (is_regular_file(st)) in __fs_is_empty()
2085 if (_VSTD_FS::is_regular_file(st)) in __do_refresh()
/llvm-project-15.0.7/bolt/tools/merge-fdata/
H A Dmerge-fdata.cpp333 if (llvm::sys::fs::is_regular_file(InputDataFilename)) in main()
340 if (llvm::sys::fs::is_regular_file(F->path())) in main()
/llvm-project-15.0.7/flang/lib/Frontend/
H A DFrontendAction.cpp46 if (!llvm::sys::fs::is_regular_file(input.getFile())) { in beginSourceFile()

12