clang 20.0.0git
|
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. | |
Glob that represents a pattern of header files to retreive.
Definition at line 116 of file HeaderFile.h.
clang::installapi::HeaderGlob::HeaderGlob | ( | StringRef | GlobString, |
llvm::Regex && | , | ||
HeaderType | Type | ||
) |
Definition at line 66 of file HeaderFile.cpp.
|
static |
Create a header glob from string for the header access level.
Definition at line 79 of file HeaderFile.cpp.
|
inline |
Query if a header was matched in the glob, used primarily for error reporting.
Definition at line 135 of file HeaderFile.h.
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().
|
inline |
Provide back input glob string.
Definition at line 138 of file HeaderFile.h.