[PATCH] D93314: [clangd] go-to-definition on auto unwraps array/pointer types

Quentin Chateau via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 16 05:27:45 PST 2020


qchateau added a comment.

> So I'm leaning towards defining these behaviors for **pointers and containers** rather than **templates** per se. There's a nice symmetry with the raw pointer and array types that this patch.
> (We have some precedent and code for detecting smart pointers, see `getPointeeType()` in FindTarget.cpp.)

If you think it's fine to have specific code using heuristics to try to find what the user expects, then **pointers and containers** sounds like a good target.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93314



More information about the cfe-commits mailing list