[PATCH] D127403: [clangd] Implement semantic token modifier "definition"

Christian Kandeler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 30 00:56:56 PDT 2022


ckandeler added inline comments.


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:79
+  if (auto *Var = dyn_cast<VarDecl>(Decl))
+    return !isa<ParmVarDecl>(Var) && Var->isThisDeclarationADefinition();
+  return isa<ObjCCategoryDecl>(Decl) || isa<ObjCImplDecl>(Decl);
----------------
I'm not 100% sure about this one, by the way. I've just never heard anyone talk about a "parameter definition".


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127403/new/

https://reviews.llvm.org/D127403



More information about the cfe-commits mailing list