class SpecialCaseList::Matcher

Declaration

class SpecialCaseList::Matcher { /* full declaration omitted */ };

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.

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:119

Method Overview

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

Methods

bool insert(std::string Regexp,
            unsigned int LineNumber,
            std::string& REError)

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:121

Parameters

std::string Regexp
unsigned int LineNumber
std::string& REError

unsigned int match(llvm::StringRef Query) const

Declared at: llvm/include/llvm/Support/SpecialCaseList.h:124

Parameters

llvm::StringRef Query