LLVM API Documentation
This class represents a YAML stream potentially containing multiple documents. More...
#include <YAMLParser.h>
Public Member Functions | |
Stream (StringRef Input, SourceMgr &) | |
This keeps a reference to the string referenced by Input . | |
Stream (MemoryBufferRef InputBuffer, SourceMgr &) | |
~Stream () | |
document_iterator | begin () |
document_iterator | end () |
void | skip () |
bool | failed () |
bool | validate () |
void | printError (Node *N, const Twine &Msg) |
Friends | |
class | Document |
This class represents a YAML stream potentially containing multiple documents.
Definition at line 77 of file YAMLParser.h.
Stream::Stream | ( | StringRef | Input, |
SourceMgr & | SM | ||
) |
This keeps a reference to the string referenced by Input
.
Definition at line 1520 of file YAMLParser.cpp.
Stream::Stream | ( | MemoryBufferRef | InputBuffer, |
SourceMgr & | SM | ||
) |
Definition at line 1523 of file YAMLParser.cpp.
Stream::~Stream | ( | ) |
Definition at line 1526 of file YAMLParser.cpp.
Definition at line 1539 of file YAMLParser.cpp.
References Document, and llvm::report_fatal_error().
Referenced by skip().
Definition at line 1550 of file YAMLParser.cpp.
Referenced by skip().
bool Stream::failed | ( | ) |
Definition at line 1528 of file YAMLParser.cpp.
Referenced by validate().
void Stream::printError | ( | Node * | N, |
const Twine & | Msg | ||
) |
Definition at line 1530 of file YAMLParser.cpp.
References llvm::SourceMgr::DK_Error, llvm::yaml::Node::getSourceRange(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), Ranges, and llvm::SMRange::Start.
void Stream::skip | ( | ) |
Definition at line 1554 of file YAMLParser.cpp.
References begin(), and end().
Referenced by validate().
bool llvm::yaml::Stream::validate | ( | ) | [inline] |
Definition at line 89 of file YAMLParser.h.
friend class Document [friend] |
Definition at line 100 of file YAMLParser.h.
Referenced by begin().