9#ifndef LLDB_SOURCE_PLUGINS_LANGUAGE_CLANGCOMMON_CLANGHIGHLIGHTER_H
10#define LLDB_SOURCE_PLUGINS_LANGUAGE_CLANGCOMMON_CLANGHIGHLIGHTER_H
13#include "llvm/ADT/StringSet.h"
25 llvm::StringRef
GetName()
const override {
return "clang"; }
28 std::optional<size_t> cursor_pos,
29 llvm::StringRef previous_lines,
Stream &s)
const override;
33 bool isKeyword(llvm::StringRef token)
const;
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.
bool isKeyword(llvm::StringRef token) const
Returns true if the given string represents a keywords in any Clang supported language.
llvm::StringRef GetName() const override
Returns a human readable name for the selected highlighter.
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.
Represents style that the highlighter should apply to the given source code.