LLVM: llvm::StringMatcher Class Reference (original) (raw)
Given a list of strings and code to execute when they match, output a simple switch tree to classify the input string. More...
#include "[llvm/TableGen/StringMatcher.h](StringMatcher%5F8h%5Fsource.html)"
| Public Types | |
|---|---|
| using | StringPair = std::pair<std::string, std::string> |
Detailed Description
Given a list of strings and code to execute when they match, output a simple switch tree to classify the input string.
If a match is found, the code in Matches[i].second is executed; control must not exit this code fragment. If nothing matches, execution falls through.
Definition at line 30 of file StringMatcher.h.
Member Typedef Documentation
◆ StringPair
using llvm::StringMatcher::StringPair = std::pair<std::string, std::string>
Constructor & Destructor Documentation
Member Function Documentation
◆ Emit()
| void StringMatcher::Emit | ( | unsigned | Indent = 0, |
|---|---|---|---|
| bool | IgnoreDuplicates = false ) const |
The documentation for this class was generated from the following files:
- include/llvm/TableGen/StringMatcher.h
- lib/TableGen/StringMatcher.cpp