LLVM 20.0.0git
Classes | Public Member Functions | List of all members
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

 MarkupFilter (raw_ostream &OS, LLVMSymbolizer &Symbolizer, std::optional< bool > ColorsEnabled=std::nullopt)
 
void filter (std::string &&InputLine)
 Filters a line containing symbolizer markup and writes the human-readable results to the output stream.
 
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 32 of file MarkupFilter.h.

Constructor & Destructor Documentation

◆ MarkupFilter()

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

Definition at line 38 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 44 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 67 of file MarkupFilter.cpp.

References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear().


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