14const Regex
Rule(
"(.+)/(.+)\\.framework/");
16 assert(InstallName.contains(
".framework") &&
"expected a framework");
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);
32 Path = sys::path::parent_path(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/")
@ Match
This is not an overload because the signature exactly matches an existing declaration.
Diagnostic wrappers for TextAPI types for error reporting.