9#ifndef LLDB_SOURCE_PLUGINS_HIGHLIGHTER_DEFAULT_DEFAULTHIGHLIGHTER_H
10#define LLDB_SOURCE_PLUGINS_HIGHLIGHTER_DEFAULT_DEFAULTHIGHLIGHTER_H
20 llvm::StringRef
GetName()
const override {
return "none"; }
23 std::optional<size_t> cursor_pos,
24 llvm::StringRef previous_lines,
Stream &s)
const override;
A default highlighter that only highlights the user cursor, but doesn't do any other highlighting.
static llvm::StringRef GetPluginNameStatic()
llvm::StringRef GetPluginName() override
llvm::StringRef GetName() const override
Returns a human readable name for the selected highlighter.
static Highlighter * CreateInstance(lldb::LanguageType language)
void Highlight(const HighlightStyle &options, llvm::StringRef line, std::optional< size_t > cursor_pos, llvm::StringRef previous_lines, Stream &s) const override
Highlights the given line.
Annotates source code with color attributes.
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
LanguageType
Programming language type.
Represents style that the highlighter should apply to the given source code.