[PATCH] D72498: [clangd] Print underlying type for decltypes in hover
liu hui via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 11 04:56:18 PST 2020
lh123 added a comment.
In D72498#1813902 <https://reviews.llvm.org/D72498#1813902>, @ilya-biryukov wrote:
> Could it be the case that we want to show the canonical types (i.e. without all syntax sugar)?
> Maybe we want both the normal type and the canonical type?
+1,I think it would be helpful to show the canonical type in this case.
int main() {
std::vector<int> a;
a.front(); // hover on front
}
hover over the `front` , you'll see "instance-method `front` → `std::vector<int, class std::allocator<int> >::reference`".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72498/new/
https://reviews.llvm.org/D72498
More information about the cfe-commits
mailing list