Home
last modified time | relevance | path

Searched refs:Path (Results 1 – 25 of 717) sorted by relevance

12345678910>>...29

/llvm-project/clang/unittests/InstallAPI/
H A DHeaderFileTest.cpp18 const char *Path = "/System/Library/Frameworks/Foo.framework/Headers/Foo.h"; in TEST() local
19 std::optional<std::string> IncludeName = createIncludeHeaderName(Path); in TEST()
23 Path = "/System/Library/Frameworks/Foo.framework/Frameworks/Bar.framework/" in TEST()
25 IncludeName = createIncludeHeaderName(Path); in TEST()
29 Path = "/tmp/Foo.framework/Versions/A/Headers/SimpleFoo.h"; in TEST()
30 IncludeName = createIncludeHeaderName(Path); in TEST()
34 Path = "/System/Library/PrivateFrameworks/Foo.framework/Headers/Foo.h"; in TEST()
35 IncludeName = createIncludeHeaderName(Path); in TEST()
39 Path = "/AppleInternal/Developer/Library/Frameworks/" in TEST()
41 IncludeName = createIncludeHeaderName(Path); in TEST()
[all …]
/llvm-project/clang/lib/Sema/
H A DCheckExprLifetime.cpp226 IndirectLocalPath &Path; in pathContainsInit()
227 unsigned OldSize = Path.size(); in pathContainsInit()
228 RevertToOldSizeRAII(IndirectLocalPath &Path) : Path(Path) {} in pathContainsInit()
229 ~RevertToOldSizeRAII() { Path.resize(OldSize); } in pathContainsInit()
232 using LocalVisitor = llvm::function_ref<bool(IndirectLocalPath &Path, Local L,
236 static bool isVarOnPath(const IndirectLocalPath &Path, VarDecl *VD) {
237 for (auto E : Path)
243 static bool pathContainsInit(const IndirectLocalPath &Path) { in isRecordWithAttr()
207 IndirectLocalPath &Path; global() member
217 isVarOnPath(IndirectLocalPath & Path,VarDecl * VD) isVarOnPath() argument
224 pathContainsInit(IndirectLocalPath & Path) pathContainsInit() argument
323 handleGslAnnotatedTypes(IndirectLocalPath & Path,Expr * Call,LocalVisitor Visit) handleGslAnnotatedTypes() argument
419 visitLifetimeBoundArguments(IndirectLocalPath & Path,Expr * Call,LocalVisitor Visit) visitLifetimeBoundArguments() argument
486 visitLocalsRetainedByReferenceBinding(IndirectLocalPath & Path,Expr * Init,ReferenceKind RK,LocalVisitor Visit,bool EnableLifetimeWarnings) visitLocalsRetainedByReferenceBinding() argument
622 visitLocalsRetainedByInitializer(IndirectLocalPath & Path,Expr * Init,LocalVisitor Visit,bool RevisitSubinits,bool EnableLifetimeWarnings) visitLocalsRetainedByInitializer() argument
660 __anon074cb5ce0702(IndirectLocalPath &Path, Local L, ReferenceKind RK) visitLocalsRetainedByInitializer() argument
913 shouldLifetimeExtendThroughPath(const IndirectLocalPath & Path) shouldLifetimeExtendThroughPath() argument
925 nextPathEntryRange(const IndirectLocalPath & Path,unsigned I,Expr * E) nextPathEntryRange() argument
955 pathOnlyInitializesGslPointer(IndirectLocalPath & Path) pathOnlyInitializesGslPointer() argument
982 __anon074cb5ce0802(IndirectLocalPath &Path, Local L, ReferenceKind RK) checkExprLifetimeImpl() argument
1264 llvm::SmallVector<IndirectLocalPathEntry, 8> Path; checkExprLifetimeImpl() local
[all...]
/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp27 bool IsFile(const std::string &Path) { in IsFile() argument
29 if (stat(Path.c_str(), &St)) in IsFile()
34 bool IsDirectory(const std::string &Path) { in IsDirectory() argument
36 if (stat(Path.c_str(), &St)) in IsDirectory()
41 size_t FileSize(const std::string &Path) { in FileSize() argument
43 if (stat(Path.c_str(), &St)) in FileSize()
48 std::string Basename(const std::string &Path) { in Basename() argument
49 size_t Pos = Path.rfind(GetSeparator()); in Basename()
50 if (Pos == std::string::npos) return Path; in Basename()
51 assert(Pos < Path.size()); in Basename()
[all …]
H A DFuzzerIO.cpp34 long GetEpoch(const std::string &Path) { in GetEpoch() argument
36 if (stat(Path.c_str(), &St)) in GetEpoch()
41 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() argument
42 std::ifstream T(Path, std::ios::binary); in FileToVector()
44 Printf("No such directory: %s; exiting\n", Path.c_str()); in FileToVector()
61 std::string FileToString(const std::string &Path) { in FileToString() argument
62 std::ifstream T(Path, std::ios::binary); in FileToString()
67 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() argument
68 Puts(FileToString(Path).c_str()); in CopyFileToErr()
71 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() argument
[all …]
H A DFuzzerIOWindows.cpp26 static bool IsFile(const std::string &Path, const DWORD &FileAttributes) { in IsFile() argument
35 CreateFileA(Path.c_str(), 0, FILE_SHARE_READ, NULL, OPEN_EXISTING, in IsFile()
39 Printf("CreateFileA() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
47 Printf("GetFileType() failed for \"%s\" (Error code: %lu).\n", Path.c_str(), in IsFile()
62 bool IsFile(const std::string &Path) { in IsFile() argument
63 DWORD Att = GetFileAttributesA(Path.c_str()); in IsFile()
67 Path.c_str(), GetLastError()); in IsFile()
71 return IsFile(Path, Att); in IsFile()
79 bool IsDirectory(const std::string &Path) { in IsDirectory() argument
80 DWORD Att = GetFileAttributesA(Path.c_str()); in IsDirectory()
[all …]
H A DFuzzerIO.h18 long GetEpoch(const std::string &Path);
20 Unit FileToVector(const std::string &Path, size_t MaxSize = 0,
23 std::string FileToString(const std::string &Path);
25 void CopyFileToErr(const std::string &Path);
27 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path);
29 void WriteToFile(const std::string &Data, const std::string &Path);
30 void WriteToFile(const Unit &U, const std::string &Path);
32 void AppendToFile(const uint8_t *Data, size_t Size, const std::string &Path);
33 void AppendToFile(const std::string &Data, const std::string &Path);
35 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch,
[all …]
/llvm-project/llvm/include/llvm/Testing/Support/
H A DSupportHelpers.h114 SmallString<128> Path; variable
125 EC = llvm::sys::fs::createUniqueDirectory(Name, Path);
128 std::string UnresolvedPath(Path.str());
129 EC = llvm::sys::fs::real_path(UnresolvedPath, Path);
132 Path = Name;
133 EC = llvm::sys::fs::create_directory(Path);
136 Path.clear();
141 if (!Path.empty()) { in ~TempDir()
142 EXPECT_FALSE(llvm::sys::fs::remove_directories(Path.str())); in ~TempDir()
153 StringRef path() const { return Path; } in path()
[all …]
/llvm-project/clang-tools-extra/clangd/support/
H A DPath.cpp15 std::string maybeCaseFoldPath(PathRef Path) { return Path.lower(); } in maybeCaseFoldPath() argument
18 std::string maybeCaseFoldPath(PathRef Path) { return Path.str(); }
22 PathRef absoluteParent(PathRef Path) { in absoluteParent() argument
23 assert(llvm::sys::path::is_absolute(Path)); in absoluteParent()
27 if (llvm::sys::path::relative_path(Path).empty()) { in absoluteParent()
31 PathRef Result = llvm::sys::path::parent_path(Path); in absoluteParent()
36 bool pathStartsWith(PathRef Ancestor, PathRef Path, in pathStartsWith() argument
39 llvm::sys::path::is_absolute(Path)); in pathStartsWith()
45 if (!pathEqual(Ancestor, Path.take_front(Ancestor.size()))) in pathStartsWith()
47 Path = Path.drop_front(Ancestor.size()); in pathStartsWith()
[all …]
/llvm-project/llvm/unittests/Testing/Support/
H A DTempPathTest.cpp29 std::string Path = Dir1->path().str(); in TEST() local
30 ASSERT_TRUE(sys::fs::exists(Path)); in TEST()
33 ASSERT_EQ(Path, Dir2->path()); in TEST()
34 ASSERT_TRUE(sys::fs::exists(Path)); in TEST()
37 ASSERT_TRUE(sys::fs::exists(Path)); in TEST()
40 ASSERT_FALSE(sys::fs::exists(Path)); in TEST()
57 std::string Path = File1->path().str(); in TEST() local
58 ASSERT_TRUE(sys::fs::exists(Path)); in TEST()
61 ASSERT_EQ(Path, File2->path()); in TEST()
62 ASSERT_TRUE(sys::fs::exists(Path)); in TEST()
[all …]
/llvm-project/clang/lib/InstallAPI/
H A DDirectoryScanner.cpp36 SmallString<PATH_MAX> Path(Directory); in scanForUnwrappedLibraries() local
37 sys::path::append(Path, Sub); in scanForUnwrappedLibraries()
38 return FM.getOptionalDirectoryRef(Path); in scanForUnwrappedLibraries()
66 static bool isFramework(StringRef Path) { in isFramework() argument
67 while (Path.back() == '/') in isFramework()
68 Path = Path.slice(0, Path.size() - 1); in isFramework()
70 return llvm::StringSwitch<bool>(llvm::sys::path::extension(Path)) in isFramework()
76 DirectoryScanner::getOrCreateLibrary(StringRef Path, in getOrCreateLibrary() argument
90 scanHeaders(StringRef Path,Library & Lib,HeaderType Type,StringRef BasePath,StringRef ParentPath) const scanHeaders() argument
183 scanFrameworkVersionsDirectory(StringRef Path,Library & Lib) const scanFrameworkVersionsDirectory() argument
215 scanFrameworkDirectory(StringRef Path,Library & Framework) const scanFrameworkDirectory() argument
291 SmallString<PATH_MAX> Path(Directory); scanForFrameworks() local
[all...]
H A DLibrary.cpp26 StringRef Path = BaseDirectory; in getName() local
29 while (!Path.empty()) { in getName()
30 if (Path.ends_with(".framework")) in getName()
31 return sys::path::filename(Path); in getName()
32 Path = sys::path::parent_path(Path); in getName()
36 Path = BaseDirectory; in getName()
37 return sys::path::filename(Path.rtrim("/")); in getName()
/llvm-project/llvm/lib/Support/
H A DFileCollector.cpp34 static bool isCaseSensitivePath(StringRef Path) { in isCaseSensitivePath() argument
35 SmallString<256> TmpDest = Path, UpperDest, RealDest; in isCaseSensitivePath()
38 if (sys::fs::real_path(Path, TmpDest)) in isCaseSensitivePath()
40 Path = TmpDest; in isCaseSensitivePath()
46 UpperDest = Path.upper(); in isCaseSensitivePath()
47 if (!sys::fs::real_path(UpperDest, RealDest) && Path == RealDest) in isCaseSensitivePath()
59 SmallVectorImpl<char> &Path) { in updateWithRealPath() argument
60 StringRef SrcPath(Path.begin(), Path.size()); in updateWithRealPath()
87 Path.swap(RealPath); in updateWithRealPath()
91 static void makeAbsolute(SmallVectorImpl<char> &Path) { in makeAbsolute() argument
[all …]
H A DVirtualFileSystem.cpp35 #include "llvm/Support/Path.h"
128 std::error_code FileSystem::makeAbsolute(SmallVectorImpl<char> &Path) const { in makeAbsolute()
129 if (llvm::sys::path::is_absolute(Path)) in makeAbsolute()
136 llvm::sys::fs::make_absolute(WorkingDir.get(), Path); in makeAbsolute()
140 std::error_code FileSystem::getRealPath(const Twine &Path, in getRealPath() argument
145 std::error_code FileSystem::isLocal(const Twine &Path, bool &Result) { in isLocal() argument
149 bool FileSystem::exists(const Twine &Path) { in exists() argument
150 auto Status = status(Path); in exists()
173 static bool pathHasTraversal(StringRef Path) { in pathHasTraversal() argument
176 for (StringRef Comp : llvm::make_range(path::begin(Path), pat in pathHasTraversal()
250 setPath(const Twine & Path) setPath() argument
297 adjustPath(const Twine & Path,SmallVectorImpl<char> & Storage) const adjustPath() argument
316 status(const Twine & Path) status() argument
348 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
365 isLocal(const Twine & Path,bool & Result) isLocal() argument
370 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) getRealPath() argument
402 RealFSDirIter(const Twine & Path,std::error_code & EC) RealFSDirIter() argument
441 status(const Twine & Path) status() argument
451 exists(const Twine & Path) exists() argument
461 openFileForRead(const llvm::Twine & Path) openFileForRead() argument
478 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
485 isLocal(const Twine & Path,bool & Result) isLocal() argument
492 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) getRealPath() argument
678 InMemoryHardLink(StringRef Path,const InMemoryFile & ResolvedFile) InMemoryHardLink() argument
701 InMemorySymbolicLink(StringRef Path,StringRef TargetPath,Status Stat) InMemorySymbolicLink() argument
747 setPath(const Twine & Path) setPath() argument
847 SmallString<128> Path; addFile() local
957 SmallString<128> Path; lookupNode() local
1068 status(const Twine & Path) status() argument
1076 openFileForRead(const Twine & Path) openFileForRead() argument
1100 SmallString<256> Path(RequestedDirName); setCurrentEntry() local
1162 SmallString<128> Path; setCurrentWorkingDirectory() local
1178 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) getRealPath() argument
1190 isLocal(const Twine & Path,bool & Result) isLocal() argument
1210 getExistingStyle(llvm::StringRef Path) getExistingStyle() argument
1222 canonicalize(llvm::StringRef Path) canonicalize() argument
1288 RedirectingFSDirIterImpl(const Twine & Path,RedirectingFileSystem::DirectoryEntry::iterator Begin,RedirectingFileSystem::DirectoryEntry::iterator End,std::error_code & EC) RedirectingFSDirIterImpl() argument
1346 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
1361 SmallString<256> Path; isLocal() local
1428 SmallString<256> Path; dir_begin() local
2415 SmallString<256> Path; status() local
2452 SmallString<256> Path; exists() local
2520 setPath(const Twine & Path) setPath() argument
2541 SmallString<256> Path; openFileForRead() local
2603 SmallString<256> Path; getRealPath() local
2661 getVFSEntries(RedirectingFileSystem::Entry * SrcE,SmallVectorImpl<StringRef> & Path,SmallVectorImpl<YAMLVFSEntry> & Entries) getVFSEntries() argument
2766 containedIn(StringRef Parent,StringRef Path) containedIn() argument
2780 containedPart(StringRef Parent,StringRef Path) containedPart() argument
2786 startDirectory(StringRef Path) startDirectory() argument
2911 recursive_directory_iterator(FileSystem & FS_,const Twine & Path,std::error_code & EC) recursive_directory_iterator() argument
[all...]
H A DPath.cpp1 //===-- Path.cpp - Implement OS Path Concept ------------------------------===//
9 // This file implements the operating system Path API.
13 #include "llvm/Support/Path.h"
228 i.Path = path; in begin()
237 i.Path = path; in end()
243 assert(Position < Path.size() && "Tried to increment past end!"); in operator ++()
249 if (Position == Path.size()) { in operator ++()
260 if (is_separator(Path[Position], S)) { in operator ++()
265 Component = Path in operator ++()
298 rbegin(StringRef Path,Style style) rbegin() argument
307 rend(StringRef Path) rend() argument
500 starts_with(StringRef Path,StringRef Prefix,Style style=Style::native) starts_with() argument
519 replace_path_prefix(SmallVectorImpl<char> & Path,StringRef OldPrefix,StringRef NewPrefix,Style style) replace_path_prefix() argument
551 native(SmallVectorImpl<char> & Path,Style style) native() argument
704 remove_leading_dotslash(StringRef Path,Style style) remove_leading_dotslash() argument
788 getUniqueID(const Twine Path,UniqueID & Result) getUniqueID() argument
968 create_directories(const Twine & Path,bool IgnoreExisting,perms Perms) create_directories() argument
1068 md5_contents(const Twine & Path) md5_contents() argument
1086 get_file_type(const Twine & Path,bool Follow) get_file_type() argument
1135 is_other(const Twine & Path,bool & Result) is_other() argument
1152 getPermissions(const Twine & Path) getPermissions() argument
[all...]
H A DFileOutputBuffer.cpp35 OnDiskBuffer(StringRef Path, fs::TempFile Temp, fs::mapped_file_region Buf) in OnDiskBuffer() argument
36 : FileOutputBuffer(Path), Buffer(std::move(Buf)), Temp(std::move(Temp)) {} in OnDiskBuffer()
78 InMemoryBuffer(StringRef Path, MemoryBlock Buf, std::size_t BufSize, in InMemoryBuffer() argument
80 : FileOutputBuffer(Path), Buffer(Buf), BufferSize(BufSize), in InMemoryBuffer()
118 createInMemoryBuffer(StringRef Path, size_t Size, unsigned Mode) { in createInMemoryBuffer() argument
124 return std::make_unique<InMemoryBuffer>(Path, MB, Size, Mode); in createInMemoryBuffer()
128 createOnDiskBuffer(StringRef Path, size_t Size, unsigned Mode) { in createOnDiskBuffer() argument
130 fs::TempFile::create(Path + ".tmp%%%%%%%", Mode); in createOnDiskBuffer()
150 return createInMemoryBuffer(Path, Size, Mode); in createOnDiskBuffer()
153 return std::make_unique<OnDiskBuffer>(Path, std::move(File), in createOnDiskBuffer()
[all …]
/llvm-project/clang-tools-extra/clang-doc/assets/
H A Dindex.js4 var Path = window.location.protocol.startsWith("file") ?
5 `${window.location.protocol}//${window.location.host}/${Ref.Path}` :
6 `${window.location.protocol}//${RootPath}/${Ref.Path}`;
8 Path = `${Path}/index.html`
9 } else if (Ref.Path === "") {
10 Path = `${Path}${Ref.Name}.html`;
12 Path = `${Path}/
[all...]
/llvm-project/llvm/lib/TextAPI/
H A DUtils.cpp20 void llvm::MachO::replace_extension(SmallVectorImpl<char> &Path, in replace_extension() argument
22 StringRef P(Path.begin(), Path.size()); in replace_extension()
27 sys::path::replace_extension(Path, Extension); in replace_extension()
31 // extension is appended. e.g. given Path: "Foo.framework/Foo" and Extension: in replace_extension()
38 Path.push_back('.'); in replace_extension()
41 Path.append(Ext.begin(), Ext.end()); in replace_extension()
44 std::error_code llvm::MachO::shouldSkipSymLink(const Twine &Path, in shouldSkipSymLink() argument
48 auto P = Path.toNullTerminatedStringRef(Storage); in shouldSkipSymLink()
110 bool llvm::MachO::isPrivateLibrary(StringRef Path, boo argument
[all...]
/llvm-project/lldb/unittests/Host/
H A DFileSystemTest.cpp49 ErrorOr<vfs::Status> status(const Twine &Path) override { in status() argument
51 FilesAndDirs.find(Path.str()); in status()
62 openFileForRead(const Twine &Path) override { in openFileForRead() argument
63 auto S = status(Path); in openFileForRead()
71 std::error_code setCurrentWorkingDirectory(const Twine &Path) override { in setCurrentWorkingDirectory() argument
72 cwd = Path.str(); in setCurrentWorkingDirectory()
76 std::error_code getRealPath(const Twine &Path, in getRealPath() argument
78 auto I = FilesAndDirs.find(Path.str()); in getRealPath()
87 Path.toVector(Output); in getRealPath()
94 std::string Path; member
[all …]
/llvm-project/clang/lib/DirectoryWatcher/mac/
H A DDirectoryWatcher-mac.cpp114 StringRef Path = ((const char **)EventPaths)[i]; in eventStreamCallback() local
125 Path == ctx->WatchedPath) { in eventStreamCallback()
136 llvm::sys::path::filename(Path)); in eventStreamCallback()
139 if (!getFileStatus(Path).has_value()) { in eventStreamCallback()
141 llvm::sys::path::filename(Path)); in eventStreamCallback()
144 llvm::sys::path::filename(Path)); in eventStreamCallback()
161 StringRef Path, in createFSEventStream() argument
164 if (Path.empty()) in createFSEventStream()
171 CFStringCreateWithBytes(nullptr, (const UInt8 *)Path.data(), in createFSEventStream()
172 Path.size(), kCFStringEncodingUTF8, false); in createFSEventStream()
[all …]
/llvm-project/llvm/include/llvm/Support/
H A DVirtualFileSystem.h27 #include "llvm/Support/Path.h"
143 virtual void setPath(const Twine &Path) {} in setPath() argument
149 std::string Path; variable
154 directory_entry(std::string Path, llvm::sys::fs::file_type Type) in directory_entry() argument
155 : Path(std::move(Path)), Type(Type) {} in directory_entry()
157 llvm::StringRef path() const { return Path; } in path()
235 recursive_directory_iterator(FileSystem &FS, const Twine &Path,
271 /// Get the status of the entry at \p Path, if one exists.
272 virtual llvm::ErrorOr<Status> status(const Twine &Path)
444 status(const Twine & Path) status() argument
447 exists(const Twine & Path) exists() argument
449 openFileForRead(const Twine & Path) openFileForRead() argument
458 setCurrentWorkingDirectory(const Twine & Path) setCurrentWorkingDirectory() argument
461 getRealPath(const Twine & Path,SmallVectorImpl<char> & Output) getRealPath() argument
465 isLocal(const Twine & Path,bool & Result) isLocal() argument
491 StringRef Path; global() member
[all...]
/llvm-project/clang/lib/APINotes/
H A DAPINotesManager.cpp26 #include "llvm/Support/Path.h"
144 llvm::SmallString<128> Path(Directory.getName()); in findAPINotesFile() local
149 llvm::sys::path::append(Path, llvm::Twine(Basename) + Suffix + "." + in findAPINotesFile()
151 return FM.getOptionalFileRef(Path, /*Open*/ true); in findAPINotesFile()
158 llvm::SmallString<128> Path(FrameworkPath); in loadFrameworkAPINotes() local
159 unsigned FrameworkNameLength = Path.size(); in loadFrameworkAPINotes()
164 llvm::sys::path::append(Path, "APINotes"); in loadFrameworkAPINotes()
165 llvm::sys::path::append(Path, (llvm::Twine(FrameworkName) + Suffix + "." + in loadFrameworkAPINotes()
169 auto APINotesFile = FM.getOptionalFileRef(Path); in loadFrameworkAPINotes()
174 Path in loadFrameworkAPINotes()
254 llvm::SmallString<128> Path(M->Directory->getName()); getCurrentModuleAPINotes() local
390 StringRef Path = Dir->getName(); findAPINotes() local
[all...]
/llvm-project/llvm/lib/WindowsDriver/
H A DMSVCPaths.cpp100 std::optional<llvm::StringRef> WinSysRoot, std::string &Path, int &Major, in getWindowsSDKDirViaCommandLine() argument
117 Path = std::string(SDKPath); in getWindowsSDKDirViaCommandLine()
119 Path = WinSdkDir->str(); in getWindowsSDKDirViaCommandLine()
125 } else if (getWindows10SDKVersionFromPath(VFS, Path, Version)) { in getWindowsSDKDirViaCommandLine()
360 SmallString<256> Path(VCToolChainPath); in getSubDirectoryPath() local
362 sys::path::append(Path, SubdirParent); in getSubDirectoryPath()
378 sys::path::append(Path, "bin", HostName, SubdirName); in getSubDirectoryPath()
380 sys::path::append(Path, "bin", SubdirName); in getSubDirectoryPath()
384 sys::path::append(Path, IncludeName); in getSubDirectoryPath()
387 sys::path::append(Path, "lib", SubdirName); in getSubDirectoryPath()
[all …]
/llvm-project/clang/lib/Tooling/
H A DFileMatchTrie.cpp64 if (Path.empty()) { in insert()
66 Path = std::string(NewPath); in insert()
71 if (NewPath == Path) in insert()
75 StringRef(Path).drop_back(ConsumedLength))); in insert()
76 Children[Element].Path = Path; in insert()
112 if (llvm::sys::path::filename(Path) == in findEquivalent()
114 Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent()
115 return StringRef(Path); in findEquivalent()
156 if (Path.empty()) in getAll()
159 Results.push_back(StringRef(Path)); in getAll()
[all …]
/llvm-project/clang-tools-extra/clangd/unittests/
H A DURITests.cpp64 auto Path = URI::resolve(U, HintPath); in resolveOrDie() local
65 if (!Path) in resolveOrDie()
66 llvm_unreachable(toString(Path.takeError()).c_str()); in resolveOrDie()
67 return *Path; in resolveOrDie()
168 auto Path = URI::resolvePath(AbsPath, HintPath); in resolvePathOrDie() local
169 if (!Path) in resolvePathOrDie()
170 llvm_unreachable(toString(Path.takeError()).c_str()); in resolvePathOrDie()
171 return *Path; in resolvePathOrDie()
190 auto Path = testPath("x"); in TEST() local
191 auto U = URI::create(Path, "file"); in TEST()
[all …]
/llvm-project/llvm/lib/Object/
H A DBuildID.cpp19 #include "llvm/Support/Path.h"
70 SmallString<128> Path{Directory}; in fetch() local
71 sys::path::append(Path, ".build-id", in fetch()
74 Path += ".debug"; in fetch()
75 return Path; in fetch()
78 SmallString<128> Path = GetDebugPath( in fetch() local
87 if (llvm::sys::fs::exists(Path)) in fetch()
88 return std::string(Path); in fetch()
92 SmallString<128> Path = GetDebugPath(Directory); in fetch() local
93 if (llvm::sys::fs::exists(Path)) in fetch()
[all...]

12345678910>>...29