LLVM  10.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::remarks::YAMLSerializer Struct Reference

Serialize the remarks to YAML. More...

#include "llvm/Remarks/YAMLRemarkSerializer.h"

Inheritance diagram for llvm::remarks::YAMLSerializer:
Inheritance graph
[legend]
Collaboration diagram for llvm::remarks::YAMLSerializer:
Collaboration graph
[legend]

Public Member Functions

 YAMLSerializer (raw_ostream &OS)
 
void emit (const Remark &Remark) override
 Emit a remark to the stream. More...
 
- Public Member Functions inherited from llvm::remarks::Serializer
 Serializer (raw_ostream &OS)
 
virtual ~Serializer ()=default
 This is just an interface. More...
 

Public Attributes

yaml::Output YAMLOutput
 The YAML streamer. More...
 
- Public Attributes inherited from llvm::remarks::Serializer
raw_ostreamOS
 The open raw_ostream that the remark diagnostics are emitted to. More...
 
Optional< StringTableStrTab
 The string table containing all the unique strings used in the output. More...
 

Detailed Description

Serialize the remarks to YAML.

One remark entry looks like this: — !<TYPE> Pass: <PASSNAME> Name: <REMARKNAME> DebugLoc: { File: <SOURCEFILENAME>, Line: <SOURCELINE>, Column: <SOURCECOLUMN> } Function: <FUNCTIONNAME> Args:

DebugLoc: { File: <FILE>, Line: <LINE>, Column: <COL> } ...

Definition at line 33 of file YAMLRemarkSerializer.h.

Constructor & Destructor Documentation

◆ YAMLSerializer()

YAMLSerializer::YAMLSerializer ( raw_ostream OS)

Definition at line 152 of file YAMLRemarkSerializer.cpp.

Member Function Documentation

◆ emit()

void YAMLSerializer::emit ( const Remark Remark)
overridevirtual

Emit a remark to the stream.

Implements llvm::remarks::Serializer.

Definition at line 155 of file YAMLRemarkSerializer.cpp.

Member Data Documentation

◆ YAMLOutput

yaml::Output llvm::remarks::YAMLSerializer::YAMLOutput

The YAML streamer.

Definition at line 35 of file YAMLRemarkSerializer.h.


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