13#ifndef LLVM_CLANG_INSTALLAPI_LIBRARY_H
14#define LLVM_CLANG_INSTALLAPI_LIBRARY_H
23 Library(StringRef Directory) : BaseDirectory(Directory) {}
35 StringRef
getPath()
const {
return BaseDirectory; }
43 StringRef IncludePath = StringRef()) {
44 Headers.emplace_back(FullPath,
Type, IncludePath);
49 return SubFrameworks.empty() && Headers.empty() &&
50 FrameworkVersions.empty();
54 std::string BaseDirectory;
56 std::vector<Library> SubFrameworks;
57 std::vector<Library> FrameworkVersions;
58 bool IsUnwrappedDylib{
false};
The base class of the type hierarchy.
StringRef getPath() const
Get discovered path of library.
void addHeaderFile(StringRef FullPath, HeaderType Type, StringRef IncludePath=StringRef())
Add a header file that belongs to the library.
StringRef getName() const
Get name of library by the discovered file path.
Library(StringRef Directory)
bool empty()
Determine if library is empty.
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.
std::vector< HeaderFile > HeaderSeq