LLVM 20.0.0git
|
This class represents a YAML stream potentially containing multiple documents. More...
#include "llvm/Support/YAMLParser.h"
Public Member Functions | |
Stream (StringRef Input, SourceMgr &, bool ShowColors=true, std::error_code *EC=nullptr) | |
This keeps a reference to the string referenced by Input . | |
Stream (MemoryBufferRef InputBuffer, SourceMgr &, bool ShowColors=true, std::error_code *EC=nullptr) | |
~Stream () | |
document_iterator | begin () |
document_iterator | end () |
void | skip () |
bool | failed () |
bool | validate () |
void | printError (Node *N, const Twine &Msg, SourceMgr::DiagKind Kind=SourceMgr::DK_Error) |
void | printError (const SMRange &Range, const Twine &Msg, SourceMgr::DiagKind Kind=SourceMgr::DK_Error) |
Friends | |
class | Document |
This class represents a YAML stream potentially containing multiple documents.
Definition at line 86 of file YAMLParser.h.
Stream::Stream | ( | StringRef | Input, |
SourceMgr & | SM, | ||
bool | ShowColors = true , |
||
std::error_code * | EC = nullptr |
||
) |
This keeps a reference to the string referenced by Input
.
Definition at line 1914 of file YAMLParser.cpp.
Stream::Stream | ( | MemoryBufferRef | InputBuffer, |
SourceMgr & | SM, | ||
bool | ShowColors = true , |
||
std::error_code * | EC = nullptr |
||
) |
Definition at line 1918 of file YAMLParser.cpp.
|
default |
document_iterator Stream::begin | ( | ) |
Definition at line 1935 of file YAMLParser.cpp.
References Document, and llvm::report_fatal_error().
Referenced by llvm::vfs::RedirectingFileSystem::create().
document_iterator Stream::end | ( | ) |
Definition at line 1946 of file YAMLParser.cpp.
Referenced by llvm::vfs::RedirectingFileSystem::create(), and llvm::remarks::YAMLRemarkParser::next().
bool Stream::failed | ( | ) |
Definition at line 1924 of file YAMLParser.cpp.
Referenced by llvm::vfs::RedirectingFileSystemParser::parse(), and validate().
void Stream::printError | ( | const SMRange & | Range, |
const Twine & | Msg, | ||
SourceMgr::DiagKind | Kind = SourceMgr::DK_Error |
||
) |
Definition at line 1930 of file YAMLParser.cpp.
References Range.
void Stream::printError | ( | Node * | N, |
const Twine & | Msg, | ||
SourceMgr::DiagKind | Kind = SourceMgr::DK_Error |
||
) |
Definition at line 1926 of file YAMLParser.cpp.
References N, and printError().
Referenced by printError(), and llvm::remarks::YAMLParseError::YAMLParseError().
void Stream::skip | ( | ) |
Definition at line 1950 of file YAMLParser.cpp.
References llvm::yaml::Document::skip().
Referenced by validate().
|
inline |
Definition at line 101 of file YAMLParser.h.
|
friend |
Definition at line 112 of file YAMLParser.h.
Referenced by begin().