LLVM 20.0.0git
|
A YAML Stream is a sequence of Documents. More...
#include "llvm/Support/YAMLParser.h"
Public Member Functions | |
Document (Stream &ParentStream) | |
Node * | parseBlockNode () |
Root for parsing a node. Returns a single node. | |
bool | skip () |
Finish parsing the current document and return true if there are more. | |
Node * | getRoot () |
Parse and return the root level node. | |
const std::map< StringRef, StringRef > & | getTagMap () const |
Friends | |
class | Node |
class | document_iterator |
A YAML Stream is a sequence of Documents.
A document contains a root node.
Definition at line 536 of file YAMLParser.h.
Document::Document | ( | Stream & | ParentStream | ) |
Definition at line 2469 of file YAMLParser.cpp.
References llvm::yaml::Token::TK_DocumentStart.
|
inline |
Parse and return the root level node.
Definition at line 548 of file YAMLParser.h.
References parseBlockNode().
Referenced by llvm::remarks::YAMLRemarkParser::parseRemark(), and skip().
Definition at line 554 of file YAMLParser.h.
Node * Document::parseBlockNode | ( | ) |
Root for parsing a node. Returns a single node.
Definition at line 2513 of file YAMLParser.cpp.
References llvm::StringRef::copy(), llvm::StringRef::drop_back(), llvm::yaml::Token::Kind, llvm_unreachable, llvm::yaml::MappingNode::MT_Block, llvm::yaml::MappingNode::MT_Flow, llvm::yaml::MappingNode::MT_Inline, llvm::yaml::Token::Range, llvm::yaml::SequenceNode::ST_Block, llvm::yaml::SequenceNode::ST_Flow, llvm::yaml::SequenceNode::ST_Indentless, llvm::StringRef::substr(), llvm::yaml::Token::TK_Alias, llvm::yaml::Token::TK_Anchor, llvm::yaml::Token::TK_BlockEntry, llvm::yaml::Token::TK_BlockMappingStart, llvm::yaml::Token::TK_BlockScalar, llvm::yaml::Token::TK_BlockSequenceStart, llvm::yaml::Token::TK_DocumentEnd, llvm::yaml::Token::TK_DocumentStart, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowEntry, llvm::yaml::Token::TK_FlowMappingEnd, llvm::yaml::Token::TK_FlowMappingStart, llvm::yaml::Token::TK_FlowSequenceEnd, llvm::yaml::Token::TK_FlowSequenceStart, llvm::yaml::Token::TK_Key, llvm::yaml::Token::TK_Scalar, llvm::yaml::Token::TK_StreamEnd, and llvm::yaml::Token::TK_Tag.
Referenced by getRoot().
bool Document::skip | ( | ) |
Finish parsing the current document and return true if there are more.
Return false otherwise.
Definition at line 2481 of file YAMLParser.cpp.
References getRoot(), llvm::yaml::Node::skip(), skip(), llvm::yaml::Token::TK_DocumentEnd, and llvm::yaml::Token::TK_StreamEnd.
Referenced by llvm::yaml::Stream::skip(), and skip().
|
friend |
Definition at line 558 of file YAMLParser.h.
|
friend |
Definition at line 557 of file YAMLParser.h.