llvm-project/clang-tools-extra/clangd/refactor
Quentin Chateau c46c7c9bcf [clangd] Smarter hover on auto and decltype
Only show the keyword as the hover "Name".

Show whether the type is deduced or undeduced as
the hover "Documentation".

Show the deduced type (if any) as the "Definition".

Don't show any hover information for:
- the "auto" word of "decltype(auto)"
- "auto" in lambda parameters
- "auto" in template arguments

---------------

This diff is a suggestion based on what @sammccall  suggested in https://reviews.llvm.org/D92977 about hover on "auto". It somehow "hacks" onto the "Documentation" and "Definition" fields of `HoverInfo`. It sure looks good on VSCode, let me know if this seem acceptable to you.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D93227
2020-12-18 16:27:09 +01:00
..
tweaks [clangd] Smarter hover on auto and decltype 2020-12-18 16:27:09 +01:00
Rename.cpp [clangd] Fix an assertion violation in rename. 2020-12-04 12:23:26 +01:00
Rename.h [clangd] Extend the rename API. 2020-10-02 16:03:44 +02:00
Tweak.cpp [clangd] makeStringError,make_error<StringError> -> error() 2020-09-14 11:48:31 +02:00
Tweak.h [clangd] Remove Tweak::Intent, use CodeAction kind directly. NFC 2020-10-02 11:14:23 +02:00