Home
last modified time | relevance | path

Searched refs:current_path (Results 1 – 25 of 55) sorted by relevance

123

/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/
H A Dcurrent_path.pass.cpp34 ASSERT_NOT_NOEXCEPT(current_path()); in current_path_signature_test()
35 ASSERT_NOT_NOEXCEPT(current_path(ec)); in current_path_signature_test()
36 ASSERT_NOT_NOEXCEPT(current_path(p)); in current_path_signature_test()
37 ASSERT_NOEXCEPT(current_path(p, ec)); in current_path_signature_test()
43 const path p = current_path(ec); in current_path_test()
48 const path p2 = current_path(); in current_path_test()
57 current_path(new_path); in current_path_after_change_test()
58 assert(current_path() == new_path); in current_path_after_change_test()
67 const path old_p = current_path(); in current_path_is_file_test()
68 current_path(p, ec); in current_path_is_file_test()
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/
H A Dweakly_canonical.pass.cpp34 fs::path root = fs::current_path().root_path(); in main()
40 {"", fs::current_path()}, in main()
41 {".", fs::current_path()}, in main()
46 {"a/b", fs::current_path() / "a/b"}, in main()
47 {"a", fs::current_path() / "a"}, in main()
48 {"a/b/", fs::current_path() / "a/b/"}, in main()
/llvm-project/lldb/source/Utility/
H A DFileSpec.cpp425 llvm::SmallString<64> current_path; in CopyByRemovingLastPathComponent() local
426 GetPath(current_path, false); in CopyByRemovingLastPathComponent()
427 if (llvm::sys::path::has_parent_path(current_path, m_style)) in CopyByRemovingLastPathComponent()
428 return FileSpec(llvm::sys::path::parent_path(current_path, m_style), in CopyByRemovingLastPathComponent()
435 llvm::SmallString<64> current_path; in PrependPathComponent() local
436 GetPath(current_path, false); in PrependPathComponent()
438 llvm::sys::path::begin(current_path, m_style), in PrependPathComponent()
439 llvm::sys::path::end(current_path), m_style); in PrependPathComponent()
448 llvm::SmallString<64> current_path; in AppendPathComponent() local
449 GetPath(current_path, false); in AppendPathComponent()
[all …]
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/
H A Dcanonical.pass.cpp71 fs::current_path(TC.base); in test_canonical()
108 LIBCPP_ASSERT(err.path2() == current_path()); in test_exception_contains_paths()
110 fs::current_path(static_env.Dir); in test_exception_contains_paths()
/llvm-project/libcxx/include/__filesystem/
H A Doperations.h137 inline _LIBCPP_HIDE_FROM_ABI path current_path() { return __current_path(); } in current_path() function
138 inline _LIBCPP_HIDE_FROM_ABI path current_path(error_code& __ec) { return __current_path(&__ec); } in current_path() function
139 inline _LIBCPP_HIDE_FROM_ABI void current_path(const path& __p) { __current_path(__p); } in current_path() function
140 inline _LIBCPP_HIDE_FROM_ABI void current_path(const path& __p, error_code& __ec) noexcept { in current_path() function
246 return proximate(__p, current_path(), __ec); in proximate()
248 inline _LIBCPP_HIDE_FROM_ABI path proximate(const path& __p, const path& __base = current_path()) {
265 return relative(__p, current_path(), __ec); in relative()
267 inline _LIBCPP_HIDE_FROM_ABI path relative(const path& __p, const path& __base = current_path()) {
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/
H A Drelative.pass.cpp34 assert(output == fs::path::string_type(fs::current_path())); in test_signature_0()
40 assert(output == fs::path::string_type(fs::current_path())); in test_signature_1()
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.absolute/
H A Dabsolute.pass.cpp38 const fs::path cwd = fs::current_path(); in basic_test()
/llvm-project/libcxx/include/
H A Dfilesystem417 path current_path();
418 path current_path(error_code& ec);
419 void current_path(const path& p);
420 void current_path(const path& p, error_code& ec) noexcept;
483 path proximate(const path& p, const path& base = current_path());
490 path relative(const path& p, const path& base=current_path());
/llvm-project/clang-tools-extra/modularize/
H A DCoverageChecker.cpp278 sys::fs::current_path(PathBuf); in collectUmbrellaHeaderHeaders()
302 sys::fs::current_path(PathBuf); in collectUmbrellaHeaderHeader()
H A DModularizeUtilities.cpp139 llvm::sys::fs::current_path(CurrentDirectory); in loadSingleHeaderListsAndDependencies()
212 llvm::sys::fs::current_path(CurrentDirectory); in loadProblemHeaderList()
H A DModuleAssistant.cpp227 llvm::sys::fs::current_path(CurrentDirectory); in loadModuleDescriptions()
/llvm-project/clang/unittests/Frontend/
H A DCompilerInstanceTest.cpp32 sys::fs::current_path(CurrentPath); in TEST()
H A DCodeGenActionTest.cpp84 // VFS instead of calling \p llvm::sys::fs::current_path() directly. in TEST()
113 llvm::sys::fs::current_path(RealCWD); in TEST()
/llvm-project/flang/unittests/Frontend/
H A DCompilerInstanceTest.cpp40 if (std::error_code ec = llvm::sys::fs::current_path(cwd)) in TEST()
H A DFrontendActionTest.cpp58 if (std::error_code ec = llvm::sys::fs::current_path(cwd)) in SetUp()
/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.proximate/
H A Dproximate.pass.cpp53 const path cwd = fs::current_path(); in basic_test()
/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStdTsSymbolMap.inc14 SYMBOL(current_path, std::experimental::filesystem::, <experimental/filesystem>)
/llvm-project/libcxx/modules/std/
H A Dfilesystem.inc73 using std::filesystem::current_path;
/llvm-project/clang-tools-extra/clang-move/tool/
H A DClangMove.cpp129 if (std::error_code EC = llvm::sys::fs::current_path(InitialDirectory)) in main()
/llvm-project/lldb/source/Host/common/
H A DProcessLaunchInfo.cpp274 if (! llvm::sys::fs::current_path(cwd)) in ConvertArgumentsForLaunchingInShell()
/llvm-project/lldb/unittests/Interpreter/
H A DTestCompletion.cpp99 ASSERT_NO_ERROR(fs::current_path(OriginalWorkingDir)); in SetUpTestCase()
/llvm-project/lldb/docs/use/
H A Dpython.rst209 >>> current_path = ""
210 >>> path = tree_utils.DFS (root, "Romeo", current_path)
244 current_path = ""
246 This line initializes the current_path from the root of the tree to our current
253 path = tree_utils.DFS (root, "Romeo", current_path)
/llvm-project/flang/lib/Optimizer/Transforms/
H A DAddDebugInfo.cpp540 // obtain the current directory using 'current_path'.
553 if (!llvm::sys::fs::current_path(cwd))
/llvm-project/lldb/tools/lldb-server/
H A Dlldb-gdbserver.cpp151 if (std::error_code ec = llvm::sys::fs::current_path(cwd)) { in handle_launch()
/llvm-project/clang/lib/Driver/
H A DJob.cpp176 std::error_code EC = fs::current_path(OutInc); in rewriteIncludes()

123