#include "lldb/Core/Highlighter.h"
#include "lldb/Target/Language.h"
#include "lldb/Utility/AnsiTerminal.h"
#include "lldb/Utility/StreamString.h"
#include <optional>
usingnamespacelldb_private;
usingnamespacelldb_private::ansi;
void HighlightStyle::ColorStyle::Apply(Stream &s, llvm::StringRef value) const { … }
void HighlightStyle::ColorStyle::Set(llvm::StringRef prefix,
llvm::StringRef suffix) { … }
void DefaultHighlighter::Highlight(const HighlightStyle &options,
llvm::StringRef line,
std::optional<size_t> cursor_pos,
llvm::StringRef previous_lines,
Stream &s) const { … }
static HighlightStyle::ColorStyle GetColor(const char *c) { … }
HighlightStyle HighlightStyle::MakeVimStyle() { … }
const Highlighter &
HighlighterManager::getHighlighterFor(lldb::LanguageType language_type,
llvm::StringRef path) const { … }
std::string Highlighter::Highlight(const HighlightStyle &options,
llvm::StringRef line,
std::optional<size_t> cursor_pos,
llvm::StringRef previous_lines) const { … }