14const Regex
Rule(
"(.+)/(.+)\\.framework/");
16 assert(InstallName.contains(
".framework") &&
"expected a framework");
18 Rule.match(InstallName, &Match);
25 assert(!IsUnwrappedDylib &&
"expected a framework");
26 StringRef
Path = BaseDirectory;
29 while (!
Path.empty()) {
30 if (
Path.ends_with(
".framework"))
31 return sys::path::filename(
Path);
37 return sys::path::filename(
Path.rtrim(
"/"));
StringRef getName() const
Get name of library by the discovered file path.
static StringRef getFrameworkNameFromInstallName(StringRef InstallName)
Capture the name of the framework by the install name.
The DirectoryScanner for collecting library files on the file system.
const Regex Rule("(.+)/(.+)\\.framework/")
Diagnostic wrappers for TextAPI types for error reporting.