clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::installapi::HeaderGlob Class Reference

Glob that represents a pattern of header files to retreive. More...

#include "clang/InstallAPI/HeaderFile.h"

Public Member Functions

 HeaderGlob (StringRef GlobString, llvm::Regex &&, HeaderType Type)
 
bool match (const HeaderFile &Header)
 Query if provided header matches glob.
 
bool didMatch ()
 Query if a header was matched in the glob, used primarily for error reporting.
 
StringRef str ()
 Provide back input glob string.
 

Static Public Member Functions

static llvm::Expected< std::unique_ptr< HeaderGlob > > create (StringRef GlobString, HeaderType Type)
 Create a header glob from string for the header access level.
 

Detailed Description

Glob that represents a pattern of header files to retreive.

Definition at line 103 of file HeaderFile.h.

Constructor & Destructor Documentation

◆ HeaderGlob()

clang::installapi::HeaderGlob::HeaderGlob ( StringRef  GlobString,
llvm::Regex &&  ,
HeaderType  Type 
)

Definition at line 66 of file HeaderFile.cpp.

Member Function Documentation

◆ create()

Expected< std::unique_ptr< HeaderGlob > > clang::installapi::HeaderGlob::create ( StringRef  GlobString,
HeaderType  Type 
)
static

Create a header glob from string for the header access level.

Definition at line 79 of file HeaderFile.cpp.

◆ didMatch()

bool clang::installapi::HeaderGlob::didMatch ( )
inline

Query if a header was matched in the glob, used primarily for error reporting.

Definition at line 122 of file HeaderFile.h.

◆ match()

bool clang::installapi::HeaderGlob::match ( const HeaderFile Header)

Query if provided header matches glob.

Definition at line 69 of file HeaderFile.cpp.

References clang::installapi::HeaderFile::getPath(), and clang::installapi::HeaderFile::getType().

◆ str()

StringRef clang::installapi::HeaderGlob::str ( )
inline

Provide back input glob string.

Definition at line 125 of file HeaderFile.h.


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