14 const Regex
Rule(
"(.+)/(.+)\\.framework/");
15 StringRef Library::getFrameworkNameFromInstallName(StringRef InstallName) {
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(
"/"));
static std::string getName(const CallEvent &Call)
The DirectoryScanner for collecting library files on the file system.
const Regex Rule("(.+)/(.+)\\.framework/")
Diagnostic wrappers for TextAPI types for error reporting.