LLDB mainline
|
Manages the available highlighters. More...
#include <Highlighter.h>
Public Member Functions | |
const Highlighter & | getHighlighterFor (lldb::LanguageType language_type, llvm::StringRef path) const |
Queries all known highlighter for one that can highlight some source code. | |
const Highlighter & | getDefaultHighlighter () const |
Private Attributes | |
DefaultHighlighter | m_default |
Manages the available highlighters.
Definition at line 137 of file Highlighter.h.
|
inline |
Definition at line 152 of file Highlighter.h.
References m_default.
const Highlighter & HighlighterManager::getHighlighterFor | ( | lldb::LanguageType | language_type, |
llvm::StringRef | path | ||
) | const |
Queries all known highlighter for one that can highlight some source code.
language_type | The language type that the caller thinks the source code was given in. |
path | The path to the file the source code is from. Used as a fallback when the user can't provide a language. |
Definition at line 66 of file Highlighter.cpp.
References lldb_private::Language::FindPlugin(), and lldb_private::Language::GetHighlighter().
Referenced by lldb_private::SourceManager::File::DisplaySourceLines().
|
private |
Definition at line 138 of file Highlighter.h.
Referenced by getDefaultHighlighter().