Home
last modified time | relevance | path

Searched refs:HighlightingKind (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang-tools-extra/clangd/
DSemanticHighlighting.cpp48 llvm::Optional<HighlightingKind> kindForType(const Type *TP);
49 llvm::Optional<HighlightingKind> kindForDecl(const NamedDecl *D) { in kindForDecl()
63 return HighlightingKind::Typedef; in kindForDecl()
72 return HighlightingKind::Class; in kindForDecl()
76 return HighlightingKind::Class; in kindForDecl()
78 return MD->isStatic() ? HighlightingKind::StaticMethod in kindForDecl()
79 : HighlightingKind::Method; in kindForDecl()
81 return HighlightingKind::Field; in kindForDecl()
83 return HighlightingKind::Enum; in kindForDecl()
85 return HighlightingKind::EnumConstant; in kindForDecl()
[all …]
DSemanticHighlighting.h40 enum class HighlightingKind { enum
67 llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, HighlightingKind K);
71 HighlightingKind Kind;
92 llvm::StringRef toSemanticTokenType(HighlightingKind Kind);
98 llvm::StringRef toTextMateScope(HighlightingKind Kind);
DClangdLSPServer.cpp125 for (int KindValue = 0; KindValue <= (int)HighlightingKind::LastKind; in buildHighlightScopeLookupTable()
128 {std::string(toTextMateScope((HighlightingKind)(KindValue)))}); in buildHighlightScopeLookupTable()
462 for (unsigned I = 0; I <= static_cast<unsigned>(HighlightingKind::LastKind); in semanticTokenTypes()
464 Types.push_back(toSemanticTokenType(static_cast<HighlightingKind>(I))); in semanticTokenTypes()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DSemanticHighlightingTests.cpp35 makeHighlightingTokens(llvm::ArrayRef<Range> Ranges, HighlightingKind Kind) { in makeHighlightingTokens()
46 static const std::map<HighlightingKind, std::string> KindToString{ in getExpectedTokens()
47 {HighlightingKind::Variable, "Variable"}, in getExpectedTokens()
48 {HighlightingKind::LocalVariable, "LocalVariable"}, in getExpectedTokens()
49 {HighlightingKind::Parameter, "Parameter"}, in getExpectedTokens()
50 {HighlightingKind::Function, "Function"}, in getExpectedTokens()
51 {HighlightingKind::Class, "Class"}, in getExpectedTokens()
52 {HighlightingKind::Enum, "Enum"}, in getExpectedTokens()
53 {HighlightingKind::Namespace, "Namespace"}, in getExpectedTokens()
54 {HighlightingKind::EnumConstant, "EnumConstant"}, in getExpectedTokens()
[all …]