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

#include "clang/InstallAPI/HeaderFile.h"

Public Member Functions

 HeaderFile ()=delete
 
 HeaderFile (StringRef FullPath, HeaderType Type, StringRef IncludeName=StringRef(), std::optional< clang::Language > Language=std::nullopt)
 
HeaderType getType () const
 
StringRef getIncludeName () const
 
StringRef getPath () const
 
void setExtra (bool V=true)
 
void setExcluded (bool V=true)
 
void setUmbrellaHeader (bool V=true)
 
bool isExtra () const
 
bool isExcluded () const
 
bool isUmbrellaHeader () const
 
bool useIncludeName () const
 
bool operator== (const HeaderFile &Other) const
 
bool operator< (const HeaderFile &Other) const
 

Static Public Member Functions

static llvm::Regex getFrameworkIncludeRule ()
 

Detailed Description

Definition at line 52 of file HeaderFile.h.

Constructor & Destructor Documentation

◆ HeaderFile() [1/2]

clang::installapi::HeaderFile::HeaderFile ( )
delete

◆ HeaderFile() [2/2]

clang::installapi::HeaderFile::HeaderFile ( StringRef  FullPath,
HeaderType  Type,
StringRef  IncludeName = StringRef(),
std::optional< clang::Language Language = std::nullopt 
)
inline

Definition at line 70 of file HeaderFile.h.

Member Function Documentation

◆ getFrameworkIncludeRule()

llvm::Regex clang::installapi::HeaderFile::getFrameworkIncludeRule ( )
static

Definition at line 15 of file HeaderFile.cpp.

Referenced by clang::installapi::createIncludeHeaderName().

◆ getIncludeName()

StringRef clang::installapi::HeaderFile::getIncludeName ( ) const
inline

◆ getPath()

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

◆ getType()

HeaderType clang::installapi::HeaderFile::getType ( ) const
inline

◆ isExcluded()

bool clang::installapi::HeaderFile::isExcluded ( ) const
inline

Definition at line 86 of file HeaderFile.h.

Referenced by clang::installapi::createInputBuffer().

◆ isExtra()

bool clang::installapi::HeaderFile::isExtra ( ) const
inline

Definition at line 85 of file HeaderFile.h.

Referenced by operator<().

◆ isUmbrellaHeader()

bool clang::installapi::HeaderFile::isUmbrellaHeader ( ) const
inline

Definition at line 87 of file HeaderFile.h.

◆ operator<()

bool clang::installapi::HeaderFile::operator< ( const HeaderFile Other) const
inline

For parsing of headers based on ordering, group by type, then whether its an umbrella. Capture 'extra' headers last. This optimizes the chance of a sucessful parse for headers that violate IWYU.

Definition at line 101 of file HeaderFile.h.

References isExtra(), and clang::Other.

◆ operator==()

bool clang::installapi::HeaderFile::operator== ( const HeaderFile Other) const
inline

Definition at line 93 of file HeaderFile.h.

References clang::Other.

◆ setExcluded()

void clang::installapi::HeaderFile::setExcluded ( bool  V = true)
inline

Definition at line 83 of file HeaderFile.h.

References V.

◆ setExtra()

void clang::installapi::HeaderFile::setExtra ( bool  V = true)
inline

Definition at line 82 of file HeaderFile.h.

References V.

◆ setUmbrellaHeader()

void clang::installapi::HeaderFile::setUmbrellaHeader ( bool  V = true)
inline

Definition at line 84 of file HeaderFile.h.

References V.

◆ useIncludeName()

bool clang::installapi::HeaderFile::useIncludeName ( ) const
inline

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