LLVM  16.0.0git
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
llvm::remarks::YAMLStrTabRemarkParser Struct Reference

YAML with a string table to Remark parser. More...

#include "Remarks/YAMLRemarkParser.h"

Inheritance diagram for llvm::remarks::YAMLStrTabRemarkParser:
Inheritance graph
Collaboration diagram for llvm::remarks::YAMLStrTabRemarkParser:
Collaboration graph

Public Member Functions

 YAMLStrTabRemarkParser (StringRef Buf, ParsedStringTable StrTab)
- Public Member Functions inherited from llvm::remarks::YAMLRemarkParser
 YAMLRemarkParser (StringRef Buf)
Expected< std::unique_ptr< Remark > > next () override
 If no error occurs, this returns a valid Remark object. More...
- Public Member Functions inherited from llvm::remarks::RemarkParser
 RemarkParser (Format ParserFormat)
virtual ~RemarkParser ()=default

Static Public Member Functions

static bool classof (const RemarkParser *P)
- Static Public Member Functions inherited from llvm::remarks::YAMLRemarkParser
static bool classof (const RemarkParser *P)

Protected Member Functions

Expected< StringRefparseStr (yaml::KeyValueNode &Node) override
 Parse one value to a string. More...
- Protected Member Functions inherited from llvm::remarks::YAMLRemarkParser
 YAMLRemarkParser (StringRef Buf, std::optional< ParsedStringTable > StrTab)
Error error ()
 Create a YAMLParseError error from an existing error generated by the YAML parser. More...
Error error (StringRef Message, yaml::Node &Node)
 Create a YAMLParseError error referencing a specific node. More...
Expected< std::unique_ptr< Remark > > parseRemark (yaml::Document &Remark)
 Parse a YAML remark to a remarks::Remark object. More...
Expected< TypeparseType (yaml::MappingNode &Node)
 Parse the type of a remark to an enum type. More...
Expected< StringRefparseKey (yaml::KeyValueNode &Node)
 Parse one key to a string. More...
Expected< unsigned > parseUnsigned (yaml::KeyValueNode &Node)
 Parse one value to an unsigned. More...
Expected< RemarkLocationparseDebugLoc (yaml::KeyValueNode &Node)
 Parse a debug location. More...
Expected< ArgumentparseArg (yaml::Node &Node)
 Parse an argument. More...

Additional Inherited Members

- Public Attributes inherited from llvm::remarks::YAMLRemarkParser
std::optional< ParsedStringTableStrTab
 The string table used for parsing strings. More...
std::string LastErrorMessage
 Last error message that can come from the YAML parser diagnostics. More...
SourceMgr SM
 Source manager for better error messages. More...
yaml::Stream Stream
 Stream for yaml parsing. More...
yaml::document_iterator YAMLIt
 Iterator in the YAML stream. More...
std::unique_ptr< MemoryBufferSeparateBuf
 If we parse remark metadata in separate mode, we need to open a new file and parse that. More...
- Public Attributes inherited from llvm::remarks::RemarkParser
Format ParserFormat
 The format of the parser. More...
std::string ExternalFilePrependPath
 Path to prepend when opening an external remark file. More...

Detailed Description

YAML with a string table to Remark parser.

Definition at line 97 of file YAMLRemarkParser.h.

Constructor & Destructor Documentation

◆ YAMLStrTabRemarkParser()

llvm::remarks::YAMLStrTabRemarkParser::YAMLStrTabRemarkParser ( StringRef  Buf,
ParsedStringTable  StrTab 

Definition at line 98 of file YAMLRemarkParser.h.

Member Function Documentation

◆ classof()

static bool llvm::remarks::YAMLStrTabRemarkParser::classof ( const RemarkParser P)

Definition at line 101 of file YAMLRemarkParser.h.

References P, and llvm::remarks::YAMLStrTab.

◆ parseStr()

Expected< StringRef > YAMLStrTabRemarkParser::parseStr ( yaml::KeyValueNode Node)

Parse one value to a string.

Reimplemented from llvm::remarks::YAMLRemarkParser.

Definition at line 429 of file YAMLRemarkParser.cpp.

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