[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

Marc-Andre Laperle via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 13 20:33:36 PDT 2018


malaperle created this revision.
Herald added subscribers: cfe-commits, jkorous, MaskRay, ioeric, ilya-biryukov.

This allows hovering on keywords that refer to deduced types.
This should cover most useful cases. Not covered:

- auto template parameters: Since this can be instantiated with many types,

it would not be practical to show the types.

- Structured binding: This could be done later to show multiple deduced types

in the hover.

- auto:: (part of concepts): Outside the scope of this patch.

Signed-off-by: Marc-Andre Laperle <marc-andre.laperle at ericsson.com>


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D48159

Files:
  clangd/XRefs.cpp
  unittests/clangd/TestTU.cpp
  unittests/clangd/TestTU.h
  unittests/clangd/XRefsTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48159.151301.patch
Type: text/x-patch
Size: 14905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180614/c1341b8a/attachment.bin>


More information about the cfe-commits mailing list