Home
last modified time | relevance | path

Searched refs:file_type (Results 1 – 25 of 72) sorted by relevance

123

/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status_known/
H A Dstatus_known.pass.cpp37 file_type type; in TEST_CASE()
41 {file_type::none, false}, in TEST_CASE()
42 {file_type::not_found, true}, in TEST_CASE()
43 {file_type::regular, true}, in TEST_CASE()
44 {file_type::directory, true}, in TEST_CASE()
45 {file_type::symlink, true}, in TEST_CASE()
46 {file_type::block, true}, in TEST_CASE()
47 {file_type::character, true}, in TEST_CASE()
48 {file_type::fifo, true}, in TEST_CASE()
49 {file_type::socket, true}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_block_file/
H A Dis_block_file.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, true}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_fifo/
H A Dis_fifo.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, true}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_other/
H A Dis_other.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, true}, in TEST_CASE()
52 {file_type::character, true}, in TEST_CASE()
53 {file_type::fifo, true}, in TEST_CASE()
54 {file_type::socket, true}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_char_file/
H A Dis_character_file.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, true}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_socket/
H A Dis_socket.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, true}, in TEST_CASE()
[all …]
/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.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, true}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_directory/
H A Dis_directory.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, true}, in TEST_CASE()
50 {file_type::symlink, false}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/
H A Dsymlink_status.pass.cpp46 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE()
51 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE()
104 TEST_CHECK(st.type() == file_type::symlink); in TEST_CASE()
108 TEST_CHECK(st.type() == file_type::symlink); in TEST_CASE()
121 file_type expect_type; in TEST_CASE()
123 {static_env.BadSymlink, file_type::symlink}, in TEST_CASE()
124 {static_env.File, file_type::regular}, in TEST_CASE()
126 {static_env.Dir, file_type::directory}, in TEST_CASE()
136 {env.create_fifo("fifo"), file_type::fifo} in TEST_CASE()
178 TEST_CHECK(st.type() == file_type::block); in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.file_status/
H A Dfile_status.cons.pass.cpp36 assert(f.type() == file_type::none); in main()
42 static_assert(std::is_nothrow_constructible<file_status, file_type>::value, in main()
44 static_assert(!test_convertible<file_status, file_type>(), in main()
47 const file_status f(file_type::not_found); in main()
48 assert(f.type() == file_type::not_found); in main()
53 static_assert(std::is_nothrow_constructible<file_status, file_type, perms>::value, in main()
55 static_assert(!test_convertible<file_status, file_type, perms>(), in main()
57 const file_status f(file_type::regular, perms::owner_read); in main()
58 assert(f.type() == file_type::regular); in main()
H A Dfile_status.mods.pass.cpp32 static_assert(noexcept(st.type(file_type::regular)), in main()
34 static_assert(std::is_same<decltype(st.type(file_type::regular)), void>::value, in main()
36 assert(st.type() != file_type::regular); in main()
37 st.type(file_type::regular); in main()
38 assert(st.type() == file_type::regular); in main()
H A Dfile_status.obs.pass.cpp28 const file_status st(file_type::regular, perms::owner_read); in main()
34 static_assert(std::is_same<decltype(st.type()), file_type>::value, in main()
36 assert(st.type() == file_type::regular); in main()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_symlink/
H A Dis_symlink.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, false}, in TEST_CASE()
49 {file_type::directory, false}, in TEST_CASE()
50 {file_type::symlink, true}, in TEST_CASE()
51 {file_type::block, false}, in TEST_CASE()
52 {file_type::character, false}, in TEST_CASE()
53 {file_type::fifo, false}, in TEST_CASE()
54 {file_type::socket, false}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/
H A Dexists.pass.cpp42 file_type type; in TEST_CASE()
46 {file_type::none, false}, in TEST_CASE()
47 {file_type::not_found, false}, in TEST_CASE()
48 {file_type::regular, true}, in TEST_CASE()
49 {file_type::directory, true}, in TEST_CASE()
50 {file_type::symlink, true}, in TEST_CASE()
51 {file_type::block, true}, in TEST_CASE()
52 {file_type::character, true}, in TEST_CASE()
53 {file_type::fifo, true}, in TEST_CASE()
54 {file_type::socket, true}, in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status/
H A Dstatus.pass.cpp47 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE()
52 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE()
89 TEST_CHECK(st.type() == file_type::none); in TEST_CASE()
113 file_type expect_type; in TEST_CASE()
115 {static_env.File, file_type::regular}, in TEST_CASE()
116 {static_env.SymlinkToFile, file_type::regular}, in TEST_CASE()
117 {static_env.Dir, file_type::directory}, in TEST_CASE()
121 {static_env.CharFile, file_type::character}, in TEST_CASE()
127 {env.create_fifo("fifo"), file_type::fifo} in TEST_CASE()
166 TEST_CHECK(st.type() == file_type::block); in TEST_CASE()
[all …]
/llvm-project-15.0.7/libcxx/include/__filesystem/
H A Ddirectory_entry.h120 return __get_ft(&__ec) == file_type::block; in is_block_file()
128 return __get_ft(&__ec) == file_type::character; in is_character_file()
136 return __get_ft(&__ec) == file_type::directory; in is_directory()
144 return __get_ft(&__ec) == file_type::fifo; in is_fifo()
160 return __get_ft(&__ec) == file_type::regular; in is_regular_file()
168 return __get_ft(&__ec) == file_type::socket; in is_socket()
274 file_type __type_;
283 __type_ = file_type::none; in __reset()
296 case file_type::none: in __create_iter_result()
298 case file_type::symlink: in __create_iter_result()
[all …]
H A Dfile_status.h32 file_status() noexcept : file_status(file_type::none) {} in file_status()
34 explicit file_status(file_type __ft, perms __prms = perms::unknown) noexcept
49 file_type type() const noexcept { return __ft_; } in type()
56 void type(file_type __ft) noexcept { __ft_ = __ft; } in type()
62 file_type __ft_;
/llvm-project-15.0.7/libcxx/src/filesystem/
H A Dfilesystem_common.h541 return file_type::block;
543 return file_type::character;
545 return file_type::directory;
547 return file_type::fifo;
549 return file_type::symlink;
551 return file_type::regular;
553 return file_type::socket;
560 return file_type::none;
566 return file_type::none;
588 return file_type::symlink;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFileSystem.h66 enum class file_type { enum
155 file_type Type = file_type::status_error;
184 file_type type() const { return Type; } in type()
221 void type(file_type v) { Type = v; } in type()
1361 file_type Type = file_type::type_unknown; // Most platforms can provide this.
1367 file_type Type = file_type::type_unknown,
1385 file_type type() const { in type()
1386 if (Type != file_type::type_unknown) in type()
1389 return S ? S->type() : file_type::type_unknown; in type()
1507 file_type type = State->Stack.top()->type(); in increment()
[all …]
/llvm-project-15.0.7/clang/lib/Serialization/
H A DMultiOnDiskHashTable.h43 using file_type = typename Info::file_type;
63 file_type File;
66 OnDiskTable(file_type File, unsigned NumBuckets, unsigned NumEntries, in OnDiskTable()
74 std::vector<file_type> Files;
90 llvm::TinyPtrVector<file_type> PendingOverrides;
129 llvm::DenseSet<file_type> Files; in removeOverriddenTables()
197 void add(file_type File, storage_type Data, Info InfoObj = Info()) {
208 llvm::SmallVector<file_type, 16> OverriddenFiles;
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/
H A Denum.file_type.pass.cpp22 constexpr fs::file_type ME(int val) { return static_cast<fs::file_type>(val); } in ME()
25 typedef fs::file_type E; in main()
/llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/
H A DPlatformDarwinKernel.h100 FindKDKandSDKDirectoriesInDirectory(void *baton, llvm::sys::fs::file_type ft,
107 llvm::sys::fs::file_type ft,
112 llvm::sys::fs::file_type ft,
116 GetKernelsAndKextsInDirectoryHelper(void *baton, llvm::sys::fs::file_type ft,
/llvm-project-15.0.7/llvm/lib/Support/
H A DFileOutputBuffer.cpp181 case fs::file_type::directory_file: in create()
183 case fs::file_type::regular_file: in create()
184 case fs::file_type::file_not_found: in create()
185 case fs::file_type::status_error: in create()
/llvm-project-15.0.7/lldb/source/Symbol/
H A DLocateSymbolFileMacOSX.cpp227 case file_type::directory_file: // Bundle directory? in LocateMacOSXFilesUsingDebugSymbols()
255 case file_type::fifo_file: // Forget pipes in LocateMacOSXFilesUsingDebugSymbols()
256 case file_type::socket_file: // We can't process socket files in LocateMacOSXFilesUsingDebugSymbols()
257 case file_type::file_not_found: // File doesn't exist... in LocateMacOSXFilesUsingDebugSymbols()
258 case file_type::status_error: in LocateMacOSXFilesUsingDebugSymbols()
261 case file_type::type_unknown: in LocateMacOSXFilesUsingDebugSymbols()
262 case file_type::regular_file: in LocateMacOSXFilesUsingDebugSymbols()
263 case file_type::symlink_file: in LocateMacOSXFilesUsingDebugSymbols()
264 case file_type::block_file: in LocateMacOSXFilesUsingDebugSymbols()
265 case file_type::character_file: in LocateMacOSXFilesUsingDebugSymbols()
/llvm-project-15.0.7/clang/unittests/Lex/
H A DHeaderSearchTest.cpp42 /*Group=*/None, llvm::sys::fs::file_type::directory_file); in addSearchDir()
51 /*Group=*/None, llvm::sys::fs::file_type::directory_file); in addSystemFrameworkSearchDir()
62 llvm::sys::fs::file_type::regular_file); in addHeaderMap()
194 /*User=*/None, /*Group=*/None, llvm::sys::fs::file_type::regular_file); in TEST_F()
262 /*User=*/None, /*Group=*/None, llvm::sys::fs::file_type::regular_file); in TEST_F()

123