[clangd] Track deprecation of 'member' semantic token type in LSP.
authorSam McCall <sam.mccall@gmail.com>
Wed, 25 Nov 2020 20:31:18 +0000 (21:31 +0100)
committerSam McCall <sam.mccall@gmail.com>
Wed, 25 Nov 2020 20:31:46 +0000 (21:31 +0100)
clang-tools-extra/clangd/SemanticHighlighting.cpp

index 1a78e7a8c0daf9002a9fc61e56fb03cf0d75a225..44d74f387dd134e209e12eea6f77b92989dec078 100644 (file)
@@ -556,12 +556,11 @@ llvm::StringRef toSemanticTokenType(HighlightingKind Kind) {
   case HighlightingKind::Function:
     return "function";
   case HighlightingKind::Method:
-    return "member";
+    return "method";
   case HighlightingKind::StaticMethod:
-    // FIXME: better function/member with static modifier?
+    // FIXME: better method with static modifier?
     return "function";
   case HighlightingKind::Field:
-    // Not "member": https://github.com/clangd/vscode-clangd/issues/105
     return "property";
   case HighlightingKind::Class:
     return "class";