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

Christian Kandeler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 7 01:39:10 PST 2022


ckandeler added inline comments.


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:592
+      Arg = IC->getSubExprAsWritten();
+    if (auto *UO = dyn_cast<UnaryOperator>(Arg)) {
+      if (UO->getOpcode() == UO_AddrOf)
----------------
nridge wrote:
> Could you add a test case that exercises the `UnaryOperator` case?
Doesn't the very first hunk in SemanticHighlightingTests.cpp do 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