[PATCH] D148284: [clangd] Add "readonly" token to const member expressions

Thorben Tröbst via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 18:20:22 PDT 2023


t-troebst created this revision.
t-troebst added a reviewer: nridge.
t-troebst added a project: clang-tools-extra.
Herald added subscribers: kadircet, arphaman.
Herald added a project: All.
t-troebst requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.

In semantic highlighting: this adds the readonly token to `a` in an member expression of the form`a` (implicit this), `(...).a` or `(...)->a` if `a` is const in this context. Previously, only the type of the declaration of `a` was considered.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148284

Files:
  clang-tools-extra/clangd/SemanticHighlighting.cpp
  clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148284.513403.patch
Type: text/x-patch
Size: 4031 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/2b1d5461/attachment.bin>


More information about the llvm-commits mailing list