LLVM 17.0.0git
Public Member Functions | List of all members
llvm::SpecialCaseList::Matcher Class Reference

Represents a set of regular expressions. More...

#include "llvm/Support/SpecialCaseList.h"

Public Member Functions

bool insert (std::string Regexp, unsigned LineNumber, std::string &REError)
unsigned match (StringRef Query) const

Detailed Description

Represents a set of regular expressions.

Regular expressions which are "literal" (i.e. no regex metacharacters) are stored in Strings. The reason for doing so is efficiency; StringMap is much faster at matching literal strings than Regex.

Definition at line 122 of file SpecialCaseList.h.

Member Function Documentation

◆ insert()

bool llvm::SpecialCaseList::Matcher::insert ( std::string  Regexp,
unsigned  LineNumber,
std::string &  REError 

◆ match()

unsigned llvm::SpecialCaseList::Matcher::match ( StringRef  Query) const

Definition at line 60 of file SpecialCaseList.cpp.

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