LLVM 20.0.0git
|
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. | |
Filter to convert parsed log symbolizer markup elements into human-readable text.
Definition at line 32 of file MarkupFilter.h.
MarkupFilter::MarkupFilter | ( | raw_ostream & | OS, |
LLVMSymbolizer & | Symbolizer, | ||
std::optional< bool > | ColorsEnabled = std::nullopt |
||
) |
Definition at line 35 of file MarkupFilter.cpp.
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().
void MarkupFilter::finish | ( | ) |
Records that the input stream has ended and writes any deferred output.
Definition at line 64 of file MarkupFilter.cpp.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear().