[PATCH] D130015: [clangd] Add "usedAsMutablePointer" highlighting modifier
Nathan Ridge via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 4 14:56:53 PDT 2022
nridge added a comment.
Sorry, I'm travelling and probably won't be able to respond promptly, but my first thought here is that this doesn't seem as well motivated as `usedAsMutableReference`, since taking a pointer to an object involves using explicit syntax (`&obj`) that taking a reference does not. My mental model of `usedAsMutableReference` is that it's a workaround for the fact that C++ does not have explicit syntax for forming a mutable reference (compare Rust's `ref obj` which in my mind makes this modifier likewise unnecessary there).
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