LLVM 22.0.0git
|
Represents a set of globs and their line numbers. More...
#include "llvm/Support/SpecialCaseList.h"
Classes | |
struct | Glob |
Public Member Functions | |
LLVM_ABI Error | insert (StringRef Pattern, unsigned LineNumber, bool UseRegex) |
LLVM_ABI unsigned | match (StringRef Query) const |
Public Attributes | |
std::vector< std::unique_ptr< Matcher::Glob > > | Globs |
std::vector< std::pair< std::unique_ptr< Regex >, unsigned > > | RegExes |
Represents a set of globs and their line numbers.
Definition at line 122 of file SpecialCaseList.h.
Error llvm::SpecialCaseList::Matcher::insert | ( | StringRef | Pattern, |
unsigned | LineNumber, | ||
bool | UseRegex ) |
Definition at line 28 of file SpecialCaseList.cpp.
References llvm::GlobPattern::create(), llvm::createStringError(), Globs, llvm::invalid_argument, llvm::Regex::isValid(), llvm::SpecialCaseList::Matcher::Glob::LineNo, llvm::SpecialCaseList::Matcher::Glob::Name, llvm::SpecialCaseList::Matcher::Glob::Pattern, RegExes, and llvm::Error::success().
Definition at line 69 of file SpecialCaseList.cpp.
References Globs, llvm::SpecialCaseList::Matcher::Glob::LineNo, llvm::GlobPattern::match(), llvm::Regex::match(), llvm::SpecialCaseList::Matcher::Glob::Pattern, RegExes, and llvm::reverse().
std::vector<std::unique_ptr<Matcher::Glob> > llvm::SpecialCaseList::Matcher::Globs |
Definition at line 140 of file SpecialCaseList.h.
Definition at line 141 of file SpecialCaseList.h.