[PATCH] D69673: [clangd] Implement semantic highlightings via findExplicitReferences
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 08:26:11 PST 2019
ilya-biryukov marked 2 inline comments as done.
ilya-biryukov added inline comments.
================
Comment at: clang-tools-extra/clangd/SemanticHighlighting.cpp:220
+ bool VisitOverloadExpr(OverloadExpr *E) {
+ if (!E->decls().empty())
+ return true; // handled by findExplicitReferences.
----------------
hokein wrote:
> IIUC, if the decls don't have the same kind, we will not highlight it (previously, we fall back to `DependentName`).
You're right. I don't think highlighting as dependent name is any better than not highlighting at all in that case, though.
Therefore, I would argue it's not worth adding more code to handle this corner case (I'm not even sure it's possible in practice, it'll take quite some time to come up with examples like these)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69673/new/
https://reviews.llvm.org/D69673
More information about the cfe-commits
mailing list