LLVM: llvm::yaml::Scanner Class Reference (original) (raw)
Scans YAML tokens from a MemoryBuffer. More...
| Public Member Functions | |
|---|---|
| Scanner (StringRef Input, SourceMgr &SM, bool ShowColors=true, std::error_code *EC=nullptr) | |
| Scanner (MemoryBufferRef Buffer, SourceMgr &SM_, bool ShowColors=true, std::error_code *EC=nullptr) | |
| Token & | peekNext () |
| Parse the next token and return it without popping it. | |
| Token | getNext () |
| Parse the next token and pop it from the queue. | |
| void | printError (SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Message, ArrayRef< SMRange > Ranges={}) |
| void | setError (const Twine &Message, StringRef::iterator Position) |
| bool | failed () |
| Returns true if an error occurred while parsing. |
Scans YAML tokens from a MemoryBuffer.
Definition at line 247 of file YAMLParser.cpp.
◆ Scanner() [1/2]
◆ Scanner() [2/2]
◆ failed()
| bool llvm::yaml::Scanner::failed ( ) | inline |
|---|
Returns true if an error occurred while parsing.
Definition at line 281 of file YAMLParser.cpp.
◆ getNext()
| Token Scanner::getNext | ( | ) |
|---|
◆ peekNext()
| Token & Scanner::peekNext | ( | ) |
|---|
◆ printError()
◆ setError()
The documentation for this class was generated from the following file:
- lib/Support/YAMLParser.cpp