17 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H 18 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H 21 #include "llvm/Support/raw_ostream.h" 67 std::vector<HighlightingToken>
Tokens;
82 std::vector<SemanticHighlightingInformation>
94 std::vector<LineHighlightings>
96 ArrayRef<HighlightingToken> Old);
std::vector< HighlightingToken > Tokens
bool operator==(const HoverInfo::Param &LHS, const HoverInfo::Param &RHS)
llvm::StringRef toTextMateScope(HighlightingKind Kind)
Converts a HighlightingKind to a corresponding TextMate scope (https://manual.macromates.com/en/language_grammars).
std::vector< SemanticHighlightingInformation > toSemanticHighlightingInformation(llvm::ArrayRef< LineHighlightings > Tokens)
Convert to LSP's semantic highlighting information.
bool operator<(const Ref &L, const Ref &R)
std::vector< LineHighlightings > diffHighlightings(ArrayRef< HighlightingToken > New, ArrayRef< HighlightingToken > Old)
Return a line-by-line diff between two highlightings.
Stores and provides access to parsed AST.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Contains all information about highlightings on a single line.
std::vector< HighlightingToken > getSemanticHighlightings(ParsedAST &AST)
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)