Use helper from clang. Also fixes some weird corner cases, e.g.
auto (*foo)() = bar;
Differential D53347
[clangd] Simplify auto hover ilya-biryukov on Oct 16 2018, 4:15 PM. Authored by
Details Use helper from clang. Also fixes some weird corner cases, e.g. auto (*foo)() = bar;
Diff Detail
Event TimelineComment Actions LGTM, it bugs me that some part in the documentation says it doesn't go through decltype(This looks through declarators like pointer types, but not through decltype or typedefs) but since tests containing decltype didn't break it looks OK to me. I would still wait for @hokein to have another look as well. Comment Actions looks good! didn't know this API before.
Comment Actions The decltypes are handled separately in VisitDecltypeTypeLoc and typedefs are a decl, so they are handled even before the visitor runs. This is only about 'auto'. So I think we're covered here.
|