[PATCH] D108320: Add semantic token modifier for non-const reference parameter

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 28 11:44:31 PDT 2021


nridge added a comment.

Thanks for the updates! LGTM from my side.



================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:555
+      // Iterate over the types of the function parameters.
+      // If any of them are non-const reference paramteres, add it as a
+      // highlighting modifier to the corresponding expression
----------------
nit: still a typo here ("paramteres")


================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:562
+        // Is this parameter passed by non-const reference?
+        // FIXME The condition !T->idDependentType() could be relaxed a bit,
+        // e.g. std::vector<T>& is dependent but we would want to highlight it
----------------
nit: typo (idDependentType)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108320



More information about the cfe-commits mailing list