Home
last modified time | relevance | path

Searched refs:RealPath (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/llvm/tools/dsymutil/
H A DCFBundle.cpp121 SmallString<256> RealPath; in SetFromPath() local
122 sys::fs::real_path(Path, RealPath, /*expand_tilde*/ true); in SetFromPath()
127 kCFAllocatorDefault, (const UInt8 *)RealPath.data(), RealPath.size(), in SetFromPath()
140 sys::path::remove_filename(RealPath); in SetFromPath()
141 } while (RealPath != sys::path::root_name(RealPath)); in SetFromPath()
/llvm-project-15.0.7/llvm/include/llvm/DWARFLinker/
H A DDWARFLinkerDeclContext.h44 SmallString<256> RealPath; in resolve() local
45 sys::fs::real_path(ParentPath, RealPath); in resolve()
47 {ParentPath, std::string(RealPath.c_str(), RealPath.size())}); in resolve()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DFileCollector.h116 void addFileToMapping(StringRef VirtualPath, StringRef RealPath) { in addFileToMapping() argument
118 VFSWriter.addDirectoryMapping(VirtualPath, RealPath); in addFileToMapping()
120 VFSWriter.addFileMapping(VirtualPath, RealPath); in addFileToMapping()
H A DVirtualFileSystem.h1023 void addEntry(StringRef VirtualPath, StringRef RealPath, bool IsDirectory);
1028 void addFileMapping(StringRef VirtualPath, StringRef RealPath);
1029 void addDirectoryMapping(StringRef VirtualPath, StringRef RealPath);
H A DFileSystem.h1149 SmallVectorImpl<char> *RealPath = nullptr);
1165 SmallVectorImpl<char> *RealPath = nullptr);
/llvm-project-15.0.7/llvm/lib/Support/
H A DFileCollector.cpp65 SmallString<256> RealPath; in updateWithRealPath() local
70 if (sys::fs::real_path(Directory, RealPath)) in updateWithRealPath()
72 CachedDirs[Directory] = std::string(RealPath.str()); in updateWithRealPath()
74 RealPath = DirWithSymlink->second; in updateWithRealPath()
82 sys::path::append(RealPath, Filename); in updateWithRealPath()
85 Path.swap(RealPath); in updateWithRealPath()
H A DVirtualFileSystem.cpp2571 void YAMLVFSWriter::addEntry(StringRef VirtualPath, StringRef RealPath, in addEntry() argument
2574 assert(sys::path::is_absolute(RealPath) && "real path not absolute"); in addEntry()
2576 Mappings.emplace_back(VirtualPath, RealPath, IsDirectory); in addEntry()
2579 void YAMLVFSWriter::addFileMapping(StringRef VirtualPath, StringRef RealPath) { in addFileMapping() argument
2580 addEntry(VirtualPath, RealPath, /*IsDirectory=*/false); in addFileMapping()
2584 StringRef RealPath) { in addDirectoryMapping() argument
2585 addEntry(VirtualPath, RealPath, /*IsDirectory=*/true); in addDirectoryMapping()
/llvm-project-15.0.7/clang/lib/DirectoryWatcher/mac/
H A DDirectoryWatcher-mac.cpp179 std::string RealPath; in createFSEventStream() local
185 RealPath = Buffer; in createFSEventStream()
187 RealPath = Path.str(); in createFSEventStream()
192 Context.info = new EventStreamContextData(std::move(RealPath), Receiver); in createFSEventStream()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DVirtualFileSystemTest.cpp278 SmallString<16> RealPath; in TEST() local
279 EXPECT_FALSE(O->getRealPath("/foo", RealPath)); in TEST()
280 EXPECT_EQ(RealPath.str(), "/foo"); in TEST()
284 EXPECT_EQ(RealPath.str(), "/symlink"); in TEST()
287 EXPECT_EQ(O->getRealPath("/upper_link", RealPath), in TEST()
293 EXPECT_EQ(RealPath.str(), "/symlink"); in TEST()
2508 SmallString<16> RealPath; in TEST_F() local
2509 EXPECT_FALSE(FS->getRealPath("/foo", RealPath)); in TEST_F()
2510 EXPECT_EQ(RealPath.str(), "/foo"); in TEST_F()
2514 EXPECT_EQ(RealPath.str(), "/symlink"); in TEST_F()
[all …]
H A DPath.cpp737 TEST_F(FileSystemTest, RealPath) { in TEST_F() argument
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DPath.inc385 SmallVectorImpl<char> &RealPath) {
386 RealPath.clear();
407 if (std::error_code EC = UTF16ToUTF8(Data, CountChars, RealPath))
410 llvm::sys::path::make_preferred(RealPath);
1221 SmallVectorImpl<char> &RealPath) {
1228 EC = realPathFromHandle(File, RealPath);
1235 SmallVectorImpl<char> *RealPath) {
1236 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1241 SmallVectorImpl<char> *RealPath) {
1246 if (Result && RealPath)
[all …]
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DPath.inc1130 SmallVectorImpl<char> *RealPath) {
1137 if(!RealPath)
1139 RealPath->clear();
1145 RealPath->append(Buffer, Buffer + strlen(Buffer));
1154 RealPath->append(Buffer, Buffer + CharCount);
1162 RealPath->append(Buffer, Buffer + strlen(Buffer));
1171 SmallVectorImpl<char> *RealPath) {
1173 std::error_code EC = openFileForRead(Name, ResultFD, Flags, RealPath);
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DSourceCode.cpp540 llvm::SmallString<128> RealPath; in getCanonicalPath() local
542 llvm::sys::path::append(RealPath, DirName, in getCanonicalPath()
544 return RealPath.str().str(); in getCanonicalPath()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp481 SmallString<256> RealPath; in isFunctionInstrumented() local
487 if (sys::fs::real_path(Filename, RealPath)) { in isFunctionInstrumented()
491 RealFilename = RealPath; in isFunctionInstrumented()
/llvm-project-15.0.7/clang/lib/Driver/
H A DDriver.cpp2823 SmallString<256> RealPath; in addDeviceDepences() local
2824 llvm::sys::fs::real_path(IA->getInputArg().getValue(), RealPath, in addDeviceDepences()
2826 Hasher.update(RealPath); in addDeviceDepences()