| /llvm-project/libcxx/include/__filesystem/ |
| H A D | operations.h | 19 #include <__filesystem/path.h> 36 _LIBCPP_EXPORTED_FROM_ABI path __absolute(const path&, error_code* __ec = nullptr); 37 _LIBCPP_EXPORTED_FROM_ABI path __canonical(const path&, error_code* __ec = nullptr); 39 __copy_file(const path& __from, const path& __to, copy_options __opt, error_code* __ec = nullptr); 41 __copy_symlink(const path& __existing_symlink, const path& __new_symlink, error_code* __ec = nullptr); 43 __copy(const path [all...] |
| /llvm-project/libcxx/include/ |
| H A D | filesystem | 18 // `class path` from http://eel.is/c++draft/fs.class.path.general#6 19 class path { 27 path() noexcept; 28 path(const path& p); 29 path(path&& p) noexcept; 30 path(string_type&& source, format fmt = auto_format); 32 path(cons [all...] |
| /llvm-project/llvm/unittests/Support/ |
| H A D | FileCollectorTest.cpp | 45 std::string root_fs(root.path()); in TEST() 67 llvm::SmallString<128> aaa(file_root.path()); in TEST() 68 llvm::sys::path::append(aaa, "aaa"); in TEST() 71 llvm::SmallString<128> bbb(file_root.path()); in TEST() 72 llvm::sys::path::append(bbb, "bbb"); in TEST() 75 llvm::SmallString<128> ccc(file_root.path()); in TEST() 76 llvm::sys::path::append(ccc, "ccc"); in TEST() 79 std::string root_fs(file_root.path()); in TEST() 82 FileCollector.addDirectory(file_root.path()); in TEST() 88 EXPECT_TRUE(FileCollector.hasSeen(a.path())); in TEST() [all …]
|
| H A D | Path.cpp | 71 char UndesiredSeparator = sys::path::get_separator()[0] == '/' ? '\\' : '/'; in checkSeparators() 83 using namespace llvm::sys::path; in TEST() 103 EXPECT_TRUE(path::is_separator('/')); in TEST() 104 EXPECT_FALSE(path::is_separator('\0')); in TEST() 105 EXPECT_FALSE(path::is_separator('-')); in TEST() 106 EXPECT_FALSE(path::is_separator(' ')); in TEST() 108 EXPECT_TRUE(path::is_separator('\\', path::Style::windows)); in TEST() 109 EXPECT_TRUE(path::is_separator('\\', path in TEST() 443 if (wchar_t const *path = ::_wgetenv(Var)) { getEnvWin() local 483 if (char const *path = ::getenv("HOME")) TEST() local 1555 remove_dots(StringRef path,bool remove_dot_dot,path::Style style) remove_dots() argument 2156 SmallString<128> path; TEST_F() local 2162 SmallString<128> path; TEST_F() member [all...] |
| /llvm-project/flang/unittests/Runtime/ |
| H A D | AccessTest.cpp | 51 static bool exists(const std::string &path) { 52 return access(path.c_str(), F_OK) == 0; 85 std::string path = in createTemporaryFile() 91 // But we can't use std::tmpfile() because we need a path to the file and in createTemporaryFile() 104 int file = open(path.c_str(), O_CREAT | O_EXCL, mode); in createTemporaryFile() 111 return path; in callAccess() 115 const std::string &path, const AccessType &accessType) { in callAccess() 116 const char *cpath{path.c_str()}; in callAccess() 143 std::string path = createTemporaryFile(__func__, accessType); in TEST() 144 ASSERT_FALSE(path in TEST() 45 exists(const std::string & path) exists() argument 79 std::string path = createTemporaryFile() local 109 callAccess(const std::string & path,const AccessType & accessType) callAccess() argument 137 std::string path = createTemporaryFile(__func__, accessType); TEST() local 162 std::string path = createTemporaryFile(__func__, accessType); TEST() local 176 std::string path = createTemporaryFile(__func__, accessType); TEST() local 191 std::string path = createTemporaryFile(__func__, accessType); TEST() local 205 std::string path = createTemporaryFile(__func__, accessType); TEST() local 221 std::string path = createTemporaryFile(__func__, accessType); TEST() local 236 std::string path = createTemporaryFile(__func__, accessType); TEST() local 253 std::string path = createTemporaryFile(__func__, accessType); TEST() local 270 std::string path = createTemporaryFile(__func__, accessType); TEST() local 286 std::string path = createTemporaryFile(__func__, accessType); TEST() local 300 std::string path = createTemporaryFile(__func__, accessType); TEST() local 317 std::string path = createTemporaryFile(__func__, accessType); TEST() local 333 std::string path = createTemporaryFile(__func__, accessType); TEST() local 352 std::string path = createTemporaryFile(__func__, accessType); TEST() local 371 std::string path = createTemporaryFile(__func__, accessType); TEST() local 390 std::string path = createTemporaryFile(__func__, accessType); TEST() local 409 std::string path = createTemporaryFile(__func__, accessType); TEST() local [all...] |
| /llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/ |
| H A D | relative.pass.cpp | 32 fs::path p(""); in test_signature_0() 33 const fs::path output = fs::weakly_canonical(p); in test_signature_0() 34 assert(output == fs::path::string_type(fs::current_path())); in test_signature_0() 38 fs::path p("."); in test_signature_1() 39 const fs::path output = fs::weakly_canonical(p); in test_signature_1() 40 assert(output == fs::path::string_type(fs::current_path())); in test_signature_1() 45 fs::path p(static_env.File); in test_signature_2() 46 const fs::path output = fs::weakly_canonical(p); in test_signature_2() 47 assert(output == fs::path::string_type(static_env.File)); in test_signature_2() 52 fs::path p(static_env.Dir); in test_signature_3() [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/ |
| H A D | path.pass.cpp | 27 const path p("foo/bar/baz.exe"); in test_path_method() 28 const path p2("abc"); in test_path_method() 32 static_assert(std::is_same<decltype(e.path()), const path&>::value, ""); in test_path_method() 33 static_assert(std::is_same<decltype(nce.path()), const path&>::value, ""); in test_path_method() 34 static_assert(noexcept(e.path()) && noexcept(nce.path()), ""); in test_path_method() 38 path const& pref = e.path(); in test_path_method() 40 assert(&pref == &e.path()); in test_path_method() 43 assert(&pref == &e.path()); in test_path_method() 49 const path p("foo/bar/baz.exe"); in test_path_conversion() 50 const path p2("abc"); in test_path_conversion() [all …]
|
| /llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/debugger/ |
| H A D | DebuggerBase.py | 22 def watch_is_active(watch_info: StepExpectInfo, path, frame_idx, line_no): argument 25 if watch_path and os.path.isfile(watch_path): 28 if not (path and os.path.isfile(path) and os.path.samefile(path, watch_path)): 197 frame.loc.path = self._debug_to_external_path(frame.loc.path) 220 def _external_to_debug_path(self, path): argument 222 return path 224 if not root_dir or not path: 225 return path 226 assert path.startswith(root_dir) 227 return path[len(root_dir) :].lstrip(os.path.sep) [all …]
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | Path.h | 9 // This file declares the llvm::sys::path namespace. It is designed after 11 // path class. 25 namespace path { 35 /// Check if \p S uses POSIX path rules. 48 /// Check if \p S uses Windows path rules. 57 /// \a path. The traversal order is as follows: 76 StringRef Path; ///< The entire path. 79 Style S = Style::native; ///< The path style to use. 82 friend const_iterator begin(StringRef path, Style style); 83 friend const_iterator end(StringRef path); [all...] |
| /llvm-project/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 80 llvm::ErrorOr<vfs::Status> FileSystem::GetStatus(const Twine &path) const { in GetStatus() 81 return m_fs->status(path); in GetStatus() 91 sys::TimePoint<> FileSystem::GetModificationTime(const Twine &path) const { in GetModificationTime() 92 ErrorOr<vfs::Status> status = m_fs->status(path); in GetModificationTime() 104 uint64_t FileSystem::GetByteSize(const Twine &path) const { in GetByteSize() 105 ErrorOr<vfs::Status> status = m_fs->status(path); in GetByteSize() 122 uint32_t FileSystem::GetPermissions(const Twine &path) const { in GetPermissions() 124 return GetPermissions(path, ec); in GetPermissions() 127 uint32_t FileSystem::GetPermissions(const Twine &path, in GetPermissions() argument 129 ErrorOr<vfs::Status> status = m_fs->status(path); in GetPermissions() [all …]
|
| /llvm-project/libcxx/test/libcxx/lint/ |
| H A D | lint_headers.sh.py | 11 def exclude_from_consideration(path): argument 13 path.endswith(".txt") 14 or path.endswith(".modulemap") 15 or os.path.basename(path) == "__config" 16 or os.path.basename(path) == "__config_site.in" 17 or os.path.basename(path) == "libcxx.imp" 18 or os.path.basename(path).startswith("__pstl") 19 or not os.path.isfile(path) # TODO: Remove once PSTL integration is finished 37 libcxx_test_libcxx_lint = os.path.dirname(os.path.abspath(__file__)) 38 libcxx_include = os.path.abspath( [all …]
|
| /llvm-project/clang/test/Preprocessor/ |
| H A D | search-path-usage.m | 5 // RUN: %clang_cc1 -Eonly %s -Rsearch-path-usage \ 6 // RUN: -I%S/Inputs/search-path-usage/a \ 7 // RUN: -I%S/Inputs/search-path-usage/a_next \ 8 // RUN: -I%S/Inputs/search-path-usage/b \ 9 // RUN: -I%S/Inputs/search-path-usage/c \ 10 // RUN: -I%S/Inputs/search-path-usage/d \ 14 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/a'}} \ 15 // expected-remark-re@#a-include-next {{search path used: '{{.*}}/search-path-usage/a_next'}} 17 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/d'}} 22 // RUN: %clang_cc1 -Eonly %s -Rsearch-path-usage \ [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
| H A D | path.charconv.pass.cpp | 65 const fs::path p(u16str); in test_latin_unicode() 73 const fs::path p(u32str); in test_latin_unicode() 81 const fs::path p = fs::u8path(str); in test_latin_unicode() 92 const fs::path p(u8str); in test_latin_unicode() 102 const fs::path p(u16str); in test_latin_unicode() 106 const fs::path p(u32str); in test_latin_unicode() 110 const fs::path p = fs::u8path(str); in test_latin_unicode() 117 const fs::path p(u16str); in test_latin_unicode() 122 const fs::path p = fs::u8path(str); in test_latin_unicode() 127 const fs::path p(wstr); in test_latin_unicode() [all …]
|
| H A D | path.concat.pass.cpp | 102 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 112 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 122 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 131 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 148 bool ExpectNoAllocations = std::is_same<CharT, path::value_type>::value; in doConcatSourceAllocTest() 151 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 164 path LHS(L); PathReserve(LHS, ReserveSize); in doConcatSourceAllocTest() 192 path LHS(L); in doConcatSourceTest() 194 path& Ref = (LHS += RHS); in doConcatSourceTest() 199 path LHS(L); in doConcatSourceTest() [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | replace_filename.pass.cpp | 34 path replace; in test_replace_filename_method() 42 const path p("/path/to/foo.exe"); in test_replace_filename_method() 43 const path replace("bar.out"); in test_replace_filename_method() 44 const path expect("/path/to/bar.out"); in test_replace_filename_method() 46 assert(e.path() == p); in test_replace_filename_method() 48 assert(e.path() == expect); in test_replace_filename_method() 58 path replace; in test_replace_filename_ec_method() 67 const path p("/path/to/foo.exe"); in test_replace_filename_ec_method() 68 const path replace("bar.out"); in test_replace_filename_ec_method() 69 const path expect("/path/to/bar.out"); in test_replace_filename_ec_method() [all …]
|
| /llvm-project/llvm/lib/Support/ |
| H A D | Path.cpp | 37 using llvm::sys::path::is_separator; 38 using llvm::sys::path::Style; 61 StringRef find_first_component(StringRef path, Style style) { 68 if (path.empty()) in find_first_component() 69 return path; in find_first_component() 73 if (path.size() >= 2 && in find_first_component() 74 std::isalpha(static_cast<unsigned char>(path[0])) && path[1] == ':') in find_first_component() 75 return path.substr(0, 2); in find_first_component() 79 if ((path in find_first_component() 62 find_first_component(StringRef path,Style style) find_first_component() argument 140 parent_path_end(StringRef path,Style style) parent_path_end() argument 225 namespace path { global() namespace 227 begin(StringRef path,Style style) begin() argument 236 end(StringRef path) end() argument 349 root_path(StringRef path,Style style) root_path() argument 374 root_name(StringRef path,Style style) root_name() argument 391 root_directory(StringRef path,Style style) root_directory() argument 414 relative_path(StringRef path,Style style) relative_path() argument 419 append(SmallVectorImpl<char> & path,Style style,const Twine & a,const Twine & b,const Twine & c,const Twine & d) append() argument 457 append(SmallVectorImpl<char> & path,const Twine & a,const Twine & b,const Twine & c,const Twine & d) append() argument 462 append(SmallVectorImpl<char> & path,const_iterator begin,const_iterator end,Style style) append() argument 468 parent_path(StringRef path,Style style) parent_path() argument 475 remove_filename(SmallVectorImpl<char> & path,Style style) remove_filename() argument 481 replace_extension(SmallVectorImpl<char> & path,const Twine & extension,Style style) replace_extension() argument 541 native(const Twine & path,SmallVectorImpl<char> & result,Style style) native() argument 569 convert_to_slash(StringRef path,Style style) convert_to_slash() argument 578 filename(StringRef path,Style style) filename() argument 580 stem(StringRef path,Style style) stem() argument 591 extension(StringRef path,Style style) extension() argument 616 has_root_name(const Twine & path,Style style) has_root_name() argument 623 has_root_directory(const Twine & path,Style style) has_root_directory() argument 630 has_root_path(const Twine & path,Style style) has_root_path() argument 637 has_relative_path(const Twine & path,Style style) has_relative_path() argument 644 has_filename(const Twine & path,Style style) has_filename() argument 651 has_parent_path(const Twine & path,Style style) has_parent_path() argument 658 has_stem(const Twine & path,Style style) has_stem() argument 665 has_extension(const Twine & path,Style style) has_extension() argument 672 is_absolute(const Twine & path,Style style) is_absolute() argument 682 is_absolute_gnu(const Twine & path,Style style) is_absolute_gnu() argument 700 is_relative(const Twine & path,Style style) is_relative() argument 908 make_absolute(const Twine & current_directory,SmallVectorImpl<char> & path) make_absolute() argument 956 make_absolute(SmallVectorImpl<char> & path) make_absolute() argument 1097 is_directory(const Twine & path,bool & result) is_directory() argument 1109 is_regular_file(const Twine & path,bool & result) is_regular_file() argument 1121 is_symlink_file(const Twine & path,bool & result) is_symlink_file() argument [all...] |
| /llvm-project/clang/bindings/python/tests/cindex/ |
| H A D | test_translation_unit.py | 27 kInputsDir = os.path.join(os.path.dirname(__file__), "INPUTS") 54 path = os.path.join(kInputsDir, "hello.cpp") 55 tu = TranslationUnit.from_source(path) 56 self.assertEqual(tu.spelling, path) 59 path = os.path.join(kInputsDir, "hello.cpp") 60 tu = get_tu(path) 66 path [all...] |
| /llvm-project/compiler-rt/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 61 #define __sanitizer_syscall_pre_open(path, flags, mode) \ argument 62 __sanitizer_syscall_pre_impl_open((long long)(path), (long long)(flags), \ 64 #define __sanitizer_syscall_post_open(res, path, flags, mode) \ argument 65 __sanitizer_syscall_post_impl_open(res, (long long)(path), \ 80 #define __sanitizer_syscall_pre_compat_43_ocreat(path, mode) \ argument 81 __sanitizer_syscall_pre_impl_compat_43_ocreat((long long)(path), \ 83 #define __sanitizer_syscall_post_compat_43_ocreat(res, path, mode) \ argument 84 __sanitizer_syscall_post_impl_compat_43_ocreat(res, (long long)(path), \ 86 #define __sanitizer_syscall_pre_link(path, link) \ argument 87 __sanitizer_syscall_pre_impl_link((long long)(path), (long long)(link)) [all …]
|
| /llvm-project/cross-project-tests/debuginfo-tests/dexter/dex/dextIR/ |
| H A D | LocIR.py | 13 def __init__(self, path: str, lineno: int, column: int): 14 if path: 15 path = os.path.normcase(path) 16 self.path = path 21 return "{}({}:{})".format(self.path, self.lineno, self.column) 25 os.path.exists(self.path) 26 and os.path.exists(rhs.path) 27 and os.path.samefile(self.path, rhs.path) 33 if self.path != rhs.path: 42 if self.path != rhs.path:
|
| /llvm-project/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 48 return llvm::sys::path::is_style_posix(style); in PathStyleIsPosix() 52 return llvm::sys::path::get_separator(style).data(); in GetPathSeparators() 59 void Denormalize(llvm::SmallVectorImpl<char> &path, FileSpec::Style style) { in Denormalize() argument 63 std::replace(path.begin(), path.end(), '/', '\\'); in Denormalize() 71 FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { in FileSpec() argument 72 SetFile(path, style); in FileSpec() 75 FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) in FileSpec() argument 76 : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} in FileSpec() 90 inline char safeCharAtIndex(const llvm::StringRef &path, size_t i) { in safeCharAtIndex() argument 91 if (i < path.size()) in safeCharAtIndex() [all …]
|
| /llvm-project/clang/tools/scan-build/bin/ |
| H A D | set-xcode-analyzer | 20 def FindClangSpecs(path): argument 21 print "(+) Searching for xcspec file in: ", path 22 for root, dirs, files in os.walk(path): 25 yield os.path.join(root, f) 27 def ModifySpec(path, isBuiltinAnalyzer, pathToChecker): argument 30 with open(path) as f: 34 with open(path) as f2: 52 print "(+) processing:", path 54 shutil.copy(t.name, path) 55 os.chmod(path, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH) [all …]
|
| /llvm-project/clang/test/Analysis/ |
| H A D | unix-api.c | 15 void open_1(const char *path) { in open_1() argument 17 fd = open(path, O_RDONLY); // no-warning in open_1() 22 void open_2(const char *path) { in open_2() argument 25 …fd = open(path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'open' with more than 3 argume… in open_2() 30 void openat_2(int base_fd, const char *path) { in openat_2() argument 33 …fd = openat(base_fd, path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'openat' with more … in openat_2() 38 void open_3(const char *path) { in open_3() argument 40 …fd = open(path, O_RDONLY, NULL); // expected-warning{{The 3rd argument to 'open' is not an integer… in open_3() 45 void openat_3(int base_fd, const char *path) { in openat_3() argument 47 …fd = openat(base_fd, path, O_RDONLY, NULL); // expected-warning{{The 4th argument to 'openat' is n… in openat_3() [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.path/ |
| H A D | range_concept_conformance.compile.pass.cpp | 20 static_assert(std::same_as<std::ranges::iterator_t<fs::path>, fs::path::iterator>); 21 static_assert(std::ranges::common_range<fs::path>); 22 static_assert(std::ranges::bidirectional_range<fs::path>); 23 static_assert(!std::ranges::view<fs::path>); 24 static_assert(!std::ranges::random_access_range<fs::path>); 25 static_assert(!std::ranges::sized_range<fs::path>); 26 static_assert(!std::ranges::borrowed_range<fs::path>); 27 static_assert(std::ranges::viewable_range<fs::path>); 29 static_assert(std::same_as<std::ranges::iterator_t<fs::path const>, fs::path::const_iterator>); 30 static_assert(std::ranges::common_range<fs::path const>); [all …]
|
| /llvm-project/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/ |
| H A D | path.pass.cpp | 32 static_assert(std::is_constructible<directory_entry, const path&>::value, in path_ctor() 35 !std::is_nothrow_constructible<directory_entry, const path&>::value, in path_ctor() 37 static_assert(!std::is_convertible<path const&, directory_entry>::value, in path_ctor() 41 const path p("foo/bar/baz"); in path_ctor() 43 assert(e.path() == p); in path_ctor() 52 std::is_constructible<directory_entry, const path&, in path_ec_ctor() 55 static_assert(!std::is_nothrow_constructible<directory_entry, const path&, in path_ec_ctor() 59 test_convertible<directory_entry, const path&, std::error_code&>(), in path_ec_ctor() 65 assert(e.path() == static_env.File); in path_ec_ctor() 69 const path p("foo/bar/baz"); in path_ec_ctor() [all …]
|
| /llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_file.cpp | 79 static void RecursiveCreateParentDirs(char *path) { in RecursiveCreateParentDirs() argument 80 if (path[0] == '\0') in RecursiveCreateParentDirs() 82 for (int i = 1; path[i] != '\0'; ++i) { in RecursiveCreateParentDirs() 83 char save = path[i]; in RecursiveCreateParentDirs() 84 if (!IsPathSeparator(path[i])) in RecursiveCreateParentDirs() 86 path[i] = '\0'; in RecursiveCreateParentDirs() 87 if (!DirExists(path) && !CreateDir(path)) { in RecursiveCreateParentDirs() 90 WriteToFile(kStderrFd, path, internal_strlen(path)); in RecursiveCreateParentDirs() 97 SetReportPath(const char * path) SetReportPath() argument 209 const char *path = GetEnv("PATH"); FindPathToBinary() local 237 __sanitizer_set_report_path(const char * path) __sanitizer_set_report_path() argument [all...] |