[PATCH] D130015: [clangd] Add "usedAsMutablePointer" highlighting modifier

Christian Kandeler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 5 02:08:29 PDT 2022


ckandeler added a comment.

IMO the relevant point is the (non-)const-ness of the corresponding parameter, i.e. can the passed object get mutated or not. The fact that there's an ampersand at the call site (which is not even the case if the variable is itself a pointer) does not tell me that.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130015



More information about the cfe-commits mailing list