LLVM 22.0.0git
llvm::symbolize::MarkupFilter Class Reference

Filter to convert parsed log symbolizer markup elements into human-readable text. More...

#include "llvm/DebugInfo/Symbolize/MarkupFilter.h"

Public Member Functions

LLVM_ABI MarkupFilter (raw_ostream &OS, LLVMSymbolizer &Symbolizer, std::optional< bool > ColorsEnabled=std::nullopt)
LLVM_ABI void filter (std::string &&InputLine)
 Filters a line containing symbolizer markup and writes the human-readable results to the output stream.
LLVM_ABI void finish ()
 Records that the input stream has ended and writes any deferred output.

Detailed Description

Filter to convert parsed log symbolizer markup elements into human-readable text.

Definition at line 33 of file MarkupFilter.h.

Constructor & Destructor Documentation

◆ MarkupFilter()

MarkupFilter::MarkupFilter ( raw_ostream & OS,
LLVMSymbolizer & Symbolizer,
std::optional< bool > ColorsEnabled = std::nullopt )

Definition at line 35 of file MarkupFilter.cpp.

Member Function Documentation

◆ filter()

void MarkupFilter::filter ( std::string && InputLine)

Filters a line containing symbolizer markup and writes the human-readable results to the output stream.

Invalid or unimplemented markup elements are removed. Some output may be deferred until future filter() or finish() call.

Definition at line 41 of file MarkupFilter.cpp.

References llvm::SmallVectorTemplateBase< T, bool >::push_back().

◆ finish()

void MarkupFilter::finish ( )

Records that the input stream has ended and writes any deferred output.

Definition at line 64 of file MarkupFilter.cpp.


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