LLVM 20.0.0git
|
YAML with a string table to Remark parser. More...
#include "Remarks/YAMLRemarkParser.h"
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< StringRef > | parseStr (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< Type > | parseType (yaml::MappingNode &Node) |
Parse the type of a remark to an enum type. | |
Expected< StringRef > | parseKey (yaml::KeyValueNode &Node) |
Parse one key to a string. | |
virtual Expected< StringRef > | parseStr (yaml::KeyValueNode &Node) |
Parse one value to a string. | |
Expected< unsigned > | parseUnsigned (yaml::KeyValueNode &Node) |
Parse one value to an unsigned. | |
Expected< RemarkLocation > | parseDebugLoc (yaml::KeyValueNode &Node) |
Parse a debug location. | |
Expected< Argument > | parseArg (yaml::Node &Node) |
Parse an argument. | |
Additional Inherited Members | |
Public Attributes inherited from llvm::remarks::YAMLRemarkParser | |
std::optional< ParsedStringTable > | StrTab |
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< MemoryBuffer > | SeparateBuf |
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. | |
YAML with a string table to Remark parser.
Definition at line 97 of file YAMLRemarkParser.h.
|
inline |
Definition at line 98 of file YAMLRemarkParser.h.
|
inlinestatic |
Definition at line 101 of file YAMLRemarkParser.h.
References P, and llvm::remarks::YAMLStrTab.
|
overrideprotectedvirtual |
Parse one value to a string.
Reimplemented from llvm::remarks::YAMLRemarkParser.
Definition at line 432 of file YAMLRemarkParser.cpp.
References llvm::remarks::YAMLRemarkParser::error(), llvm::yaml::BlockScalarNode::getValue(), llvm::remarks::YAMLRemarkParser::parseUnsigned(), and llvm::remarks::YAMLRemarkParser::StrTab.