clang 20.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
clang::installapi::Library Class Reference

#include "clang/InstallAPI/Library.h"

Public Member Functions

 Library (StringRef Directory)
 
StringRef getName () const
 Get name of library by the discovered file path.
 
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.
 
bool empty ()
 Determine if library is empty.
 

Static Public Member Functions

static StringRef getFrameworkNameFromInstallName (StringRef InstallName)
 Capture the name of the framework by the install name.
 

Friends

class DirectoryScanner
 

Detailed Description

Definition at line 21 of file Library.h.

Constructor & Destructor Documentation

◆ Library()

clang::installapi::Library::Library ( StringRef  Directory)
inline

Definition at line 23 of file Library.h.

Member Function Documentation

◆ addHeaderFile()

void clang::installapi::Library::addHeaderFile ( StringRef  FullPath,
HeaderType  Type,
StringRef  IncludePath = StringRef() 
)
inline

Add a header file that belongs to the library.

Parameters
FullPathPath to header file.
TypeAccess level of header.
IncludePathThe way the header should be included.

Definition at line 42 of file Library.h.

◆ empty()

bool clang::installapi::Library::empty ( )
inline

Determine if library is empty.

Definition at line 48 of file Library.h.

◆ getFrameworkNameFromInstallName()

StringRef clang::installapi::Library::getFrameworkNameFromInstallName ( StringRef  InstallName)
static

Capture the name of the framework by the install name.

Parameters
InstallNameThe install name of the library encoded in a dynamic library.

Definition at line 15 of file Library.cpp.

References clang::installapi::Rule().

◆ getName()

StringRef clang::installapi::Library::getName ( ) const

Get name of library by the discovered file path.

Definition at line 24 of file Library.cpp.

References Path.

◆ getPath()

StringRef clang::installapi::Library::getPath ( ) const
inline

Get discovered path of library.

Definition at line 35 of file Library.h.

Friends And Related Function Documentation

◆ DirectoryScanner

friend class DirectoryScanner
friend

Definition at line 60 of file Library.h.


The documentation for this class was generated from the following files: