[PATCH] D134728: [clangd] Add highlighting modifiers "constructor" and "destructor"

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 20:00:02 PDT 2022


sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.

Hmm, semantic tokens doesn't really provide a good way of "subclassing" kinds, I suppose modifiers are the best we have.

It doesn't scale very well though: we're limited to 30 modifiers in total, this patch brings us up to 16, if we followed this class.constructor precedent for function.operator, class.constructor.copy enum.scoped etc we could end up exhausting this.
Is it important to distinguish constructor vs destructor or just those two vs other class refs?

I think this is patch is fine, just not sure where we sholud draw the line.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134728



More information about the cfe-commits mailing list