Lines Matching refs:Path

36     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
78 if (Path.consume_front(RootPath) && Path.empty()) in getOrCreateLibrary()
79 Path = "/"; in getOrCreateLibrary()
82 find_if(Libs, [Path](const Library &L) { return L.getPath() == Path; }); in getOrCreateLibrary()
86 Libs.emplace_back(Path); in getOrCreateLibrary()
90 Error DirectoryScanner::scanHeaders(StringRef Path, Library &Lib, in scanHeaders() argument
96 for (vfs::directory_iterator i = FS.dir_begin(Path, ec), ie; i != ie; in scanHeaders()
131 ParentPath = Path; in scanHeaders()
183 DirectoryScanner::scanFrameworkVersionsDirectory(StringRef Path, in scanFrameworkVersionsDirectory() argument
187 for (vfs::directory_iterator i = FS.dir_begin(Path, ec), ie; i != ie; in scanFrameworkVersionsDirectory()
215 llvm::Error DirectoryScanner::scanFrameworkDirectory(StringRef Path, in scanFrameworkDirectory() argument
220 Path.contains("Kernel.framework") || Path.contains("IOKit.framework"); in scanFrameworkDirectory()
228 for (vfs::directory_iterator i = FS.dir_begin(Path, ec), ie; i != ie; in scanFrameworkDirectory()
291 SmallString<PATH_MAX> Path(Directory); in scanForFrameworks() local
292 sys::path::append(Path, SubDir); in scanForFrameworks()
294 if (Error Err = scanMultipleFrameworks(Path, Libraries)) in scanForFrameworks()