Annotates source code with color attributes.
More...
#include <Highlighter.h>
Annotates source code with color attributes.
Definition at line 91 of file Highlighter.h.
◆ Highlighter() [1/2]
lldb_private::Highlighter::Highlighter |
( |
| ) |
|
|
default |
◆ ~Highlighter()
virtual lldb_private::Highlighter::~Highlighter |
( |
| ) |
|
|
virtualdefault |
◆ Highlighter() [2/2]
lldb_private::Highlighter::Highlighter |
( |
const Highlighter & |
| ) |
|
|
delete |
◆ GetName()
virtual llvm::StringRef lldb_private::Highlighter::GetName |
( |
| ) |
const |
|
pure virtual |
◆ Highlight() [1/2]
virtual void lldb_private::Highlighter::Highlight |
( |
const HighlightStyle & |
options, |
|
|
llvm::StringRef |
line, |
|
|
std::optional< size_t > |
cursor_pos, |
|
|
llvm::StringRef |
previous_lines, |
|
|
Stream & |
s |
|
) |
| const |
|
pure virtual |
Highlights the given line.
- Parameters
-
options | The highlight options. |
line | The user supplied line that needs to be highlighted. |
cursor_pos | The cursor position of the user in this line, starting at 0 (which means the cursor is on the first character in 'line'). |
previous_lines | Any previous lines the user has written which we should only use for getting the context of the Highlighting right. |
s | The stream to which the highlighted version of the user string should be written. |
Implemented in lldb_private::DefaultHighlighter, and lldb_private::ClangHighlighter.
◆ Highlight() [2/2]
std::string Highlighter::Highlight |
( |
const HighlightStyle & |
options, |
|
|
llvm::StringRef |
line, |
|
|
std::optional< size_t > |
cursor_pos, |
|
|
llvm::StringRef |
previous_lines = "" |
|
) |
| const |
◆ operator=()
The documentation for this class was generated from the following files: