struct RemarkParser

Declaration

struct RemarkParser { /* full declaration omitted */ };

Description

Parser used to parse a raw buffer to remarks::Remark objects.

Declared at: llvm/include/llvm/Remarks/RemarkParser.h:39

Member Variables

public llvm::remarks::Format ParserFormat
The format of the parser.
public std::string ExternalFilePrependPath
Path to prepend when opening an external remark file.

Method Overview

Methods

RemarkParser(llvm::remarks::Format ParserFormat)

Declared at: llvm/include/llvm/Remarks/RemarkParser.h:45

Parameters

llvm::remarks::Format ParserFormat

virtual Expected<std::unique_ptr<Remark>> next()

Description

If no error occurs, this returns a valid Remark object. If an error of type EndOfFileError occurs, it is safe to recover from it by stopping the parsing. If any other error occurs, it should be propagated to the user. The pointer should never be null.

Declared at: llvm/include/llvm/Remarks/RemarkParser.h:52

virtual ~RemarkParser()

Declared at: llvm/include/llvm/Remarks/RemarkParser.h:54