LLVM 20.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
[legend]

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.
 
- Public Member Functions inherited from llvm::remarks::RemarkParser
 RemarkParser (Format ParserFormat)
 
virtual Expected< std::unique_ptr< Remark > > next ()=0
 If no error occurs, this returns a valid Remark object.
 
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.
 
- 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.
 
Error error (StringRef Message, yaml::Node &Node)
 Create a YAMLParseError error referencing a specific node.
 
Expected< std::unique_ptr< Remark > > parseRemark (yaml::Document &Remark)
 Parse a YAML remark to a remarks::Remark object.
 
Expected< TypeparseType (yaml::MappingNode &Node)
 Parse the type of a remark to an enum type.
 
Expected< StringRefparseKey (yaml::KeyValueNode &Node)
 Parse one key to a string.
 
virtual Expected< StringRefparseStr (yaml::KeyValueNode &Node)
 Parse one value to a string.
 
Expected< unsignedparseUnsigned (yaml::KeyValueNode &Node)
 Parse one value to an unsigned.
 
Expected< RemarkLocationparseDebugLoc (yaml::KeyValueNode &Node)
 Parse a debug location.
 
Expected< ArgumentparseArg (yaml::Node &Node)
 Parse an argument.
 

Additional Inherited Members

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

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 
)
inline

Definition at line 98 of file YAMLRemarkParser.h.

Member Function Documentation

◆ classof()

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

Definition at line 101 of file YAMLRemarkParser.h.

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

◆ parseStr()

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

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