clang-tools 20.0.0git
Classes | Namespaces | Enumerations | Functions
SemanticHighlighting.h File Reference
#include "Protocol.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Classes

struct  clang::clangd::HighlightingToken
 

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 FIXME: Skip testing on windows temporarily due to the different escaping code mode.
 

Enumerations

enum class  clang::clangd::HighlightingKind {
  clang::clangd::Variable = 0 , clang::clangd::LocalVariable , clang::clangd::Parameter , clang::clangd::Function ,
  clang::clangd::Method , clang::clangd::StaticMethod , clang::clangd::Field , clang::clangd::StaticField ,
  clang::clangd::Class , clang::clangd::Interface , clang::clangd::Enum , clang::clangd::EnumConstant ,
  clang::clangd::Typedef , clang::clangd::Type , clang::clangd::Unknown , clang::clangd::Namespace ,
  clang::clangd::TemplateParameter , clang::clangd::Concept , clang::clangd::Primitive , clang::clangd::Macro ,
  clang::clangd::Modifier , clang::clangd::Operator , clang::clangd::Bracket , clang::clangd::Label ,
  clang::clangd::InactiveCode , clang::clangd::LastKind = InactiveCode
}
 
enum class  clang::clangd::HighlightingModifier {
  clang::clangd::Declaration , clang::clangd::Definition , clang::clangd::Deprecated , clang::clangd::Deduced ,
  clang::clangd::Readonly , clang::clangd::Static , clang::clangd::Abstract , clang::clangd::Virtual ,
  clang::clangd::DependentName , clang::clangd::DefaultLibrary , clang::clangd::UsedAsMutableReference , clang::clangd::UsedAsMutablePointer ,
  clang::clangd::ConstructorOrDestructor , clang::clangd::UserDefined , clang::clangd::FunctionScope , clang::clangd::ClassScope ,
  clang::clangd::FileScope , clang::clangd::GlobalScope , clang::clangd::LastModifier = GlobalScope
}
 

Functions

llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, HighlightingKind K)
 
std::optional< HighlightingKind > clang::clangd::highlightingKindFromString (llvm::StringRef Name)
 
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, HighlightingModifier K)
 
std::optional< HighlightingModifier > clang::clangd::highlightingModifierFromString (llvm::StringRef Name)
 
bool clang::clangd::operator== (const HighlightingToken &L, const HighlightingToken &R)
 
bool clang::clangd::operator< (const HighlightingToken &L, const HighlightingToken &R)
 
std::vector< HighlightingToken > clang::clangd::getSemanticHighlightings (ParsedAST &AST, bool IncludeInactiveRegionTokens)
 
std::vector< SemanticToken > clang::clangd::toSemanticTokens (llvm::ArrayRef< HighlightingToken > Tokens, llvm::StringRef Code)
 
llvm::StringRef clang::clangd::toSemanticTokenType (HighlightingKind Kind)
 
llvm::StringRef clang::clangd::toSemanticTokenModifier (HighlightingModifier Modifier)
 
std::vector< SemanticTokensEdit > clang::clangd::diffTokens (llvm::ArrayRef< SemanticToken > Old, llvm::ArrayRef< SemanticToken > New)
 
std::vector< Rangeclang::clangd::getInactiveRegions (ParsedAST &AST)