LLVM 22.0.0git
llvm::yaml::Document Class Reference

A YAML Stream is a sequence of Documents. More...

#include "llvm/Support/YAMLParser.h"

Public Member Functions

LLVM_ABI Document (Stream &ParentStream)
LLVM_ABI NodeparseBlockNode ()
 Root for parsing a node. Returns a single node.
LLVM_ABI bool skip ()
 Finish parsing the current document and return true if there are more.
NodegetRoot ()
 Parse and return the root level node.
const std::map< StringRef, StringRef > & getTagMap () const

Friends

class Node
class document_iterator

Detailed Description

A YAML Stream is a sequence of Documents.

A document contains a root node.

Definition at line 538 of file YAMLParser.h.

Constructor & Destructor Documentation

◆ Document()

Document::Document ( Stream & ParentStream)

Definition at line 2469 of file YAMLParser.cpp.

References T, and llvm::yaml::Token::TK_DocumentStart.

Member Function Documentation

◆ getRoot()

Node * llvm::yaml::Document::getRoot ( )
inline

Parse and return the root level node.

Definition at line 550 of file YAMLParser.h.

References Node, and parseBlockNode().

Referenced by llvm::remarks::YAMLRemarkParser::parseRemark(), and skip().

◆ getTagMap()

const std::map< StringRef, StringRef > & llvm::yaml::Document::getTagMap ( ) const
inline

Definition at line 556 of file YAMLParser.h.

◆ parseBlockNode()

◆ skip()

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(), skip(), T, llvm::yaml::Token::TK_DocumentEnd, and llvm::yaml::Token::TK_StreamEnd.

Referenced by skip(), and llvm::yaml::Stream::skip().

◆ document_iterator

friend class document_iterator
friend

Definition at line 560 of file YAMLParser.h.

References document_iterator, and Node.

Referenced by document_iterator.

◆ Node

friend class Node
friend

Definition at line 559 of file YAMLParser.h.

References Node.

Referenced by document_iterator, getRoot(), Node, and parseBlockNode().


The documentation for this class was generated from the following files: