class Stream
Declaration
class Stream { /* full declaration omitted */ };
Description
This class represents a YAML stream potentially containing multiple documents.
Declared at: llvm/include/llvm/Support/YAMLParser.h:85
Member Variables
- private std::unique_ptr<Scanner> scanner
- private std::unique_ptr<Document> CurrentDoc
Method Overview
- public Stream(llvm::StringRef Input, llvm::SourceMgr &, bool ShowColors = true, std::error_code * EC = nullptr)
- public Stream(llvm::MemoryBufferRef InputBuffer, llvm::SourceMgr &, bool ShowColors = true, std::error_code * EC = nullptr)
- public llvm::yaml::document_iterator begin()
- public llvm::yaml::document_iterator end()
- public bool failed()
- public void printError(llvm::yaml::Node * N, const llvm::Twine & Msg, SourceMgr::DiagKind Kind = SourceMgr::DK_Error)
- public void printError(const llvm::SMRange & Range, const llvm::Twine & Msg, SourceMgr::DiagKind Kind = SourceMgr::DK_Error)
- public void skip()
- public bool validate()
- public ~Stream()
Methods
¶Stream(llvm::StringRef Input,
llvm::SourceMgr&,
bool ShowColors = true,
std::error_code* EC = nullptr)
Stream(llvm::StringRef Input,
llvm::SourceMgr&,
bool ShowColors = true,
std::error_code* EC = nullptr)
Description
This keeps a reference to the string referenced by \p Input.
Declared at: llvm/include/llvm/Support/YAMLParser.h:88
Parameters
- llvm::StringRef Input
- llvm::SourceMgr&
- bool ShowColors = true
- std::error_code* EC = nullptr
¶Stream(llvm::MemoryBufferRef InputBuffer,
llvm::SourceMgr&,
bool ShowColors = true,
std::error_code* EC = nullptr)
Stream(llvm::MemoryBufferRef InputBuffer,
llvm::SourceMgr&,
bool ShowColors = true,
std::error_code* EC = nullptr)
Declared at: llvm/include/llvm/Support/YAMLParser.h:91
Parameters
- llvm::MemoryBufferRef InputBuffer
- llvm::SourceMgr&
- bool ShowColors = true
- std::error_code* EC = nullptr
¶llvm::yaml::document_iterator begin()
llvm::yaml::document_iterator begin()
Declared at: llvm/include/llvm/Support/YAMLParser.h:95
¶llvm::yaml::document_iterator end()
llvm::yaml::document_iterator end()
Declared at: llvm/include/llvm/Support/YAMLParser.h:96
¶bool failed()
bool failed()
Declared at: llvm/include/llvm/Support/YAMLParser.h:98
¶void printError(llvm::yaml::Node* N,
const llvm::Twine& Msg,
SourceMgr::DiagKind Kind =
SourceMgr::DK_Error)
void printError(llvm::yaml::Node* N,
const llvm::Twine& Msg,
SourceMgr::DiagKind Kind =
SourceMgr::DK_Error)
Declared at: llvm/include/llvm/Support/YAMLParser.h:105
Parameters
- llvm::yaml::Node* N
- const llvm::Twine& Msg
- SourceMgr::DiagKind Kind = SourceMgr::DK_Error
¶void printError(const llvm::SMRange& Range,
const llvm::Twine& Msg,
SourceMgr::DiagKind Kind =
SourceMgr::DK_Error)
void printError(const llvm::SMRange& Range,
const llvm::Twine& Msg,
SourceMgr::DiagKind Kind =
SourceMgr::DK_Error)
Declared at: llvm/include/llvm/Support/YAMLParser.h:107
Parameters
- const llvm::SMRange& Range
- const llvm::Twine& Msg
- SourceMgr::DiagKind Kind = SourceMgr::DK_Error
¶void skip()
void skip()
Declared at: llvm/include/llvm/Support/YAMLParser.h:97
¶bool validate()
bool validate()
Declared at: llvm/include/llvm/Support/YAMLParser.h:100
¶~Stream()
~Stream()
Declared at: llvm/include/llvm/Support/YAMLParser.h:93