|
LLVM
4.0.0
|
#include <SpecialCaseList.h>
Classes | |
| struct | Entry |
| Represents a set of regular expressions. More... | |
Public Member Functions | |
| ~SpecialCaseList () | |
| bool | inSection (StringRef Section, StringRef Query, StringRef Category=StringRef()) const |
| Returns true, if special case list contains a line. More... | |
Static Public Member Functions | |
| static std::unique_ptr < SpecialCaseList > | create (const std::vector< std::string > &Paths, std::string &Error) |
| Parses the special case list entries from files. More... | |
| static std::unique_ptr < SpecialCaseList > | create (const MemoryBuffer *MB, std::string &Error) |
| Parses the special case list from a memory buffer. More... | |
| static std::unique_ptr < SpecialCaseList > | createOrDie (const std::vector< std::string > &Paths) |
| Parses the special case list entries from files. More... | |
Definition at line 60 of file SpecialCaseList.h.
| llvm::SpecialCaseList::~SpecialCaseList | ( | ) |
Definition at line 159 of file SpecialCaseList.cpp.
|
static |
Parses the special case list entries from files.
On failure, returns 0 and writes an error message to string.
Definition at line 52 of file SpecialCaseList.cpp.
References llvm::ErrorOr< T >::get(), llvm::ErrorOr< T >::getError(), and llvm::MemoryBuffer::getFile().
Referenced by createOrDie().
|
static |
Parses the special case list from a memory buffer.
On failure, returns 0 and writes an error message to string.
Definition at line 72 of file SpecialCaseList.cpp.
|
static |
Parses the special case list entries from files.
On failure, reports a fatal error.
Definition at line 82 of file SpecialCaseList.cpp.
References create(), llvm::lltok::Error, and llvm::report_fatal_error().
| bool llvm::SpecialCaseList::inSection | ( | StringRef | Section, |
| StringRef | Query, | ||
| StringRef | Category = StringRef() |
||
| ) | const |
Returns true, if special case list contains a line.
and satisfies a wildcard expression <E>.
Definition at line 161 of file SpecialCaseList.cpp.
References assert(), llvm::StringMap< ValueTy, AllocatorTy >::end(), llvm::StringMap< ValueTy, AllocatorTy >::find(), llvm::StringMapEntry< ValueTy >::getValue(), and I.
1.8.6