| /llvm-project-15.0.7/libcxx/include/__filesystem/ |
| H A D | operations.h | 37 _LIBCPP_FUNC_VIS path __absolute(const path&, error_code* __ec = nullptr); 38 _LIBCPP_FUNC_VIS path __canonical(const path&, error_code* __ec = nullptr); 50 _LIBCPP_FUNC_VIS bool __equivalent(const path&, const path&, error_code* __ec = nullptr); 57 _LIBCPP_FUNC_VIS path __weakly_canonical(path const& __p, error_code* __ec = nullptr); 58 _LIBCPP_FUNC_VIS path __read_symlink(const path&, error_code* __ec = nullptr); 61 _LIBCPP_FUNC_VIS void __rename(const path& __from, const path& __to, error_code* __ec = nullptr); 65 inline _LIBCPP_HIDE_FROM_ABI path absolute(const path& __p) { return __absolute(__p); } in absolute() 148 inline _LIBCPP_INLINE_VISIBILITY path proximate(const path& __p, const path& __base, error_code& __… in proximate() 163 inline _LIBCPP_INLINE_VISIBILITY path relative(const path& __p, const path& __base, error_code& __e… in relative() 166 return path(); in relative() [all …]
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | filesystem | 19 void swap(path& lhs, path& rhs) noexcept; 29 path operator/ (const path& lhs, const path& rhs); 31 // fs.path.io operators are friends of path. 79 path absolute(const path& p); 82 path canonical(const path& p); 189 path proximate(const path& p, const path& base = current_path()); 190 path proximate(const path& p, const path& base, error_code &ec); 192 path read_symlink(const path& p); 196 path relative(const path& p, const path& base=current_path()); 197 path relative(const path& p, const path& base, error_code& ec); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | FileCollectorTest.cpp | 47 std::string root_fs(root.path()); in TEST() 133 TempFile a(subdir2.path("a")); in TEST() 154 llvm::sys::path::relative_path(subdir.path())); in TEST() 177 VFS->status(a.path()); in TEST() 183 VFS->status(subdir.path()); in TEST() 210 TempFile d(foo.path("ddd")); in TEST() 216 TempLink symlink(file_root.path("foo"), file_root.path("bar")); in TEST() 237 (reproducer_root.path() + file_root.path() + "/aaa").str(); in TEST() 246 (reproducer_root.path() + file_root.path() + "/foo/ddd").str(); in TEST() 255 (reproducer_root.path() + file_root.path() + "/eee").str(); in TEST() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/ |
| H A D | relative.pass.cpp | 32 fs::path p(""); in TEST_CASE() 33 const fs::path output = fs::weakly_canonical(p); in TEST_CASE() 38 fs::path p("."); in TEST_CASE() 39 const fs::path output = fs::weakly_canonical(p); in TEST_CASE() 45 fs::path p(static_env.File); in TEST_CASE() 52 fs::path p(static_env.Dir); in TEST_CASE() 59 fs::path p(static_env.SymlinkToDir); in TEST_CASE() 89 fs::path p(static_env.SymlinkToDir / "dir2"); in TEST_CASE() 120 fs::path p(static_env.Dir / "../dir1"); in TEST_CASE() 127 fs::path p(static_env.Dir / "./."); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/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() 50 const path p2("abc"); in test_path_conversion() 71 path const& pref = e; in test_path_conversion() [all …]
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/unittest2/unittest2/ |
| H A D | compatibility.py | 16 def _relpath_nt(path, start=os.path.curdir): argument 19 if not path: 21 start_list = os.path.abspath(start).split(os.path.sep) 22 path_list = os.path.abspath(path).split(os.path.sep) 24 unc_path, rest = os.path.splitunc(path) 41 return os.path.curdir 47 def _relpath_posix(path, start=os.path.curdir): argument 50 if not path: 53 start_list = os.path.abspath(start).split(os.path.sep) 54 path_list = os.path.abspath(path).split(os.path.sep) [all …]
|
| H A D | loader.py | 16 from os.path import relpath 191 if top_level_dir not in sys.path: 200 if os.path.isdir(os.path.abspath(start_dir)): 217 self._top_level_dir = os.path.abspath(os.path.dirname( 229 def _get_name_from_path(self, path): argument 230 path = os.path.splitext(os.path.normpath(path))[0] 245 return fnmatch(path, pattern) 251 for path in paths: 252 full_path = os.path.join(start_dir, path) 253 if os.path.isfile(full_path): [all …]
|
| /llvm-project-15.0.7/lldb/third_party/Python/module/unittest2/unittest2/test/ |
| H A D | test_discovery.py | 55 return not path.endswith('dir') and not 'another_dir' in path 59 loader._get_module_from_name = lambda path: path + ' module' 93 os.path.isdir = lambda path: True 96 os.path.isfile = lambda path: os.path.basename(path) not in directories 104 self.path = path 106 if os.path.basename(path) == 'test_directory': 113 return self.path == other.path 153 os.path.isfile = lambda path: False 162 full_path = os.path.abspath(os.path.normpath('/foo')) 170 os.path.isfile = lambda path: True [all …]
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/debugger/ |
| H A D | DebuggerBase.py | 27 if not (path and os.path.isfile(path) and 28 os.path.samefile(path, watch_path)): 228 return path[len(root_dir):].lstrip(os.path.sep) 238 return path 267 loc=LocIR(path=path, lineno=0, column=0)) for path in paths 277 path = os.path.join(os.path.sep + 'root', 'some_file') 284 path = os.path.join(self.options.source_root_dir, 'some_file') 291 path = os.path.join(self.options.source_root_dir, 'some_file') 297 path = os.path.join(os.path.sep + 'root', 'some_file') 314 other_path = os.path.join(os.path.sep + 'other', 'file') [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Path.h | 25 namespace path { 82 friend const_iterator begin(StringRef path, Style style); 83 friend const_iterator end(StringRef path); 107 friend reverse_iterator rbegin(StringRef path, Style style); 108 friend reverse_iterator rend(StringRef path); 127 const_iterator end(StringRef path); 137 reverse_iterator rend(StringRef path); 223 void append(SmallVectorImpl<char> &path, const Twine &a, 269 inline void make_preferred(SmallVectorImpl<char> &path, 273 native(path, style); [all …]
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | FileSystem.cpp | 148 bool FileSystem::Exists(const Twine &path) const { return m_fs->exists(path); } in Exists() 175 m_fs->isLocal(path, b); in IsLocal() 218 SmallString<128> path; in MakeAbsolute() local 236 if (path.empty()) in Resolve() 240 SmallString<128> resolved(path.begin(), path.end()); in Resolve() 242 Resolver.ResolveFullPath(llvm::StringRef(path.begin(), path.size()), in Resolve() 249 path.clear(); in Resolve() 262 SmallString<128> path; in Resolve() local 266 Resolve(path); in Resolve() 350 llvm::StringRef parent = llvm::sys::path::parent_path(path); in ResolveExecutableLocation() [all …]
|
| /llvm-project-15.0.7/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 \ 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'}} 28 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/FwA'}} 39 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/b'}} 51 // expected-remark {{search path used: '/d'}} 62 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/b'}} 76 // expected-remark-re {{search path used: '{{.*}}/search-path-usage/d'}} [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/ |
| H A D | replace_filename.pass.cpp | 35 path replace; in TEST_CASE() 43 const path p("/path/to/foo.exe"); in TEST_CASE() 44 const path replace("bar.out"); in TEST_CASE() 47 TEST_CHECK(e.path() == p); in TEST_CASE() 49 TEST_CHECK(e.path() == expect); in TEST_CASE() 59 path replace; in TEST_CASE() 69 const path replace("bar.out"); in TEST_CASE() 72 TEST_CHECK(e.path() == p); in TEST_CASE() 75 TEST_CHECK(e.path() == expect); in TEST_CASE() 84 TEST_CHECK(e.path() == p); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/path.member/ |
| H A D | path.charconv.pass.cpp | 135 const fs::path p(str); in test_latin_unicode() 278 fs::path p = fs::path(u16str) / wstr / u32str; in test_append() 282 p = fs::path(u16str); in test_append() 312 fs::path p = fs::path(u16str); in test_concat() 333 fs::path p = fs::path(u16str) / u8str; in test_append_concat_narrow() 337 p = fs::path(u16str); in test_append_concat_narrow() 342 p = fs::path(u16str); in test_append_concat_narrow() 352 fs::path p = fs::path(u16str) / str; in test_append_concat_narrow() 356 p = fs::path(u16str); in test_append_concat_narrow() 369 fs::path p = fs::path(u16str) / latin1; in test_append_concat_narrow() [all …]
|
| H A D | path.concat.pass.cpp | 191 path LHS(L); in doConcatSourceTest() 198 path LHS(L); in doConcatSourceTest() 206 path LHS(L); in doConcatSourceTest() 213 path LHS(L); in doConcatSourceTest() 221 path LHS(L); in doConcatSourceTest() 228 path LHS(L); in doConcatSourceTest() 235 path LHS(L); in doConcatSourceTest() 243 path LHS(L); in doConcatSourceTest() 256 path LHS(L); in doConcatSourceTest() 276 path LHS(L); in doConcatECharTest() [all …]
|
| /llvm-project-15.0.7/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) 24 return (os.path.exists(self.path) and os.path.exists(rhs.path) 25 and os.path.samefile(self.path, rhs.path) 30 if self.path != rhs.path: 39 if self.path != rhs.path:
|
| /llvm-project-15.0.7/clang/bindings/python/tests/cindex/ |
| H A D | test_translation_unit.py | 28 kInputsDir = os.path.join(os.path.dirname(__file__), 'INPUTS') 55 path = os.path.join(kInputsDir, 'hello.cpp') 60 path = os.path.join(kInputsDir, 'hello.cpp') 67 path = os.path.join(kInputsDir, 'parse_arguments.c') 165 self.assertTrue(os.path.exists(path)) 166 self.assertGreater(os.path.getsize(path), 0) 175 self.assertTrue(os.path.exists(path)) 176 self.assertGreater(os.path.getsize(path), 0) 184 self.assertFalse(os.path.exists(os.path.dirname(path))) 198 self.assertTrue(os.path.exists(path)) [all …]
|
| /llvm-project-15.0.7/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 30 void openat_2(int base_fd, const char *path) { in openat_2() argument 38 void open_3(const char *path) { in open_3() argument 45 void openat_3(int base_fd, const char *path) { in openat_3() argument 53 void open_4(const char *path) { in open_4() argument 60 void open_5(const char *path) { in open_5() argument 70 void open_6(const char *path) { in open_6() argument 80 void open_7(const char *path) { in open_7() argument [all …]
|
| /llvm-project-15.0.7/clang/tools/scan-build/bin/ |
| H A D | set-xcode-analyzer | 20 def FindClangSpecs(path): argument 25 yield os.path.join(root, f) 30 with open(path) as f: 34 with open(path) as f2: 52 print "(+) processing:", path 54 shutil.copy(t.name, path) 82 if options.path: 84 path = os.path.expanduser(options.path) 85 if not path.endswith("clang"): 87 path = os.path.join(path, "bin", "clang"); [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/lint/ |
| H A D | lint_headers.sh.py | 11 def exclude_from_consideration(path): argument 13 path.endswith('.txt') or 14 path.endswith('.modulemap.in') or 15 os.path.basename(path) == '__config' or 16 os.path.basename(path) == '__config_site.in' or 17 not os.path.isfile(path) 32 libcxx_test_libcxx_lint = os.path.dirname(os.path.abspath(__file__)) 33 libcxx_include = os.path.abspath(os.path.join(libcxx_test_libcxx_lint, '../../../include')) 34 assert os.path.isdir(libcxx_include) 36 def pretty(path): argument [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.path/ |
| H A D | range_concept_conformance.compile.pass.cpp | 21 static_assert(std::same_as<std::ranges::iterator_t<fs::path>, fs::path::iterator>); 22 static_assert(std::ranges::common_range<fs::path>); 23 static_assert(std::ranges::bidirectional_range<fs::path>); 24 static_assert(!std::ranges::view<fs::path>); 26 static_assert(!std::ranges::sized_range<fs::path>); 27 static_assert(!std::ranges::borrowed_range<fs::path>); 28 static_assert(std::ranges::viewable_range<fs::path>); 30 static_assert(std::same_as<std::ranges::iterator_t<fs::path const>, fs::path::const_iterator>); 31 static_assert(std::ranges::common_range<fs::path const>); 33 static_assert(!std::ranges::view<fs::path const>); [all …]
|
| /llvm-project-15.0.7/compiler-rt/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 91 __sanitizer_syscall_pre_impl_unlink((long long)(path)) 96 __sanitizer_syscall_pre_impl_chdir((long long)(path)) 98 __sanitizer_syscall_post_impl_chdir(res, (long long)(path)) 105 (long long)(path), (long long)(mode), (long long)(dev)) 295 __sanitizer_syscall_pre_impl_acct((long long)(path)) 319 __sanitizer_syscall_pre_impl_revoke((long long)(path)) 344 __sanitizer_syscall_pre_impl_chroot((long long)(path)) 727 __sanitizer_syscall_pre_impl_rmdir((long long)(path)) 2915 void __sanitizer_syscall_pre_impl_chdir(long long path); 3063 void __sanitizer_syscall_pre_impl_acct(long long path); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Path.cpp | 69 return path; in find_first_component() 79 if ((path.size() > 2) && is_separator(path[0], style) && in find_first_component() 80 path[0] == path[1] && !is_separator(path[2], style)) { in find_first_component() 143 path.size() > 0 && is_separator(path[end_pos], style); in parent_path_end() 224 namespace path { namespace 374 const_iterator b = begin(path, style), e = end(path); in root_name() 433 !path.empty() && is_separator(path[path.size() - 1], style); in append() 464 path::append(path, style, *begin); in append() 482 StringRef p(path.begin(), path.size()); in replace_extension() 908 StringRef p(path.data(), path.size()); in make_absolute() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/ |
| H A D | path.pass.cpp | 41 const path p("foo/bar/baz"); in TEST_CASE() 43 TEST_CHECK(e.path() == p); in TEST_CASE() 65 TEST_CHECK(e.path() == static_env.File); in TEST_CASE() 69 const path p("foo/bar/baz"); in TEST_CASE() 72 TEST_CHECK(e.path() == p); in TEST_CASE() 80 const path dir = env.create_dir("dir"); in TEST_CASE() 158 const path file = dir / "file"; in TEST_CASE() 163 TEST_CHECK(ent.path() == file); in TEST_CASE() 170 const path dir = env.create_dir("dir"); in TEST_CASE() 181 TEST_CHECK(ent.path() == file); in TEST_CASE() [all …]
|
| /llvm-project-15.0.7/lldb/source/Utility/ |
| H A D | FileSpec.cpp | 61 std::replace(path.begin(), path.end(), '/', '\\'); in Denormalize() 70 SetFile(path, style); in FileSpec() 89 if (i < path.size()) in safeCharAtIndex() 90 return path[i]; in safeCharAtIndex() 112 if (path.empty()) in needsNormalization() 115 if (path[0] == '.') in needsNormalization() 325 s << path; in Dump() 327 if (!m_filename && !path.empty() && path.back() != path_separator) in Dump() 349 if (!path) in GetPath() 376 path.insert(path.end(), '/'); in GetPath() [all …]
|