20#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H
21#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_SEMANTICHIGHLIGHTING_H
24#include "llvm/ADT/StringRef.h"
25#include "llvm/Support/raw_ostream.h"
65std::optional<HighlightingKind>
92 "Increase width of modifiers bitfield!");
94std::optional<HighlightingModifier>
109bool operator==(
const HighlightingToken &L,
const HighlightingToken &R);
110bool operator<(
const HighlightingToken &L,
const HighlightingToken &R);
114std::vector<HighlightingToken>
117std::vector<SemanticToken>
toSemanticTokens(llvm::ArrayRef<HighlightingToken>,
118 llvm::StringRef
Code);
121std::vector<SemanticTokensEdit>
diffTokens(llvm::ArrayRef<SemanticToken> Before,
122 llvm::ArrayRef<SemanticToken> After);
llvm::SmallString< 256U > Name
const google::protobuf::Message & M
llvm::raw_string_ostream OS
std::optional< HighlightingModifier > highlightingModifierFromString(llvm::StringRef Name)
llvm::StringRef toSemanticTokenModifier(HighlightingModifier Modifier)
std::vector< HighlightingToken > getSemanticHighlightings(ParsedAST &AST, bool IncludeInactiveRegionTokens)
std::optional< HighlightingKind > highlightingKindFromString(llvm::StringRef Name)
llvm::StringRef toSemanticTokenType(HighlightingKind Kind)
std::vector< SemanticToken > toSemanticTokens(llvm::ArrayRef< HighlightingToken > Tokens, llvm::StringRef Code)
std::vector< SemanticTokensEdit > diffTokens(llvm::ArrayRef< SemanticToken > Old, llvm::ArrayRef< SemanticToken > New)
bool operator==(const Inclusion &LHS, const Inclusion &RHS)
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)
bool operator<(const Ref &L, const Ref &R)
@ Parameter
An inlay hint that is for a parameter.
@ Type
An inlay hint that for a type annotation.
@ Deprecated
Deprecated or obsolete code.
std::vector< Range > getInactiveRegions(ParsedAST &AST)
@ ConstructorOrDestructor
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
HighlightingToken & addModifier(HighlightingModifier M)