[PATCH] D114522: [clangd] Add desugared type to hover

liu hui via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 26 00:31:53 PST 2021


lh123 added inline comments.


================
Comment at: clang-tools-extra/clangd/Hover.cpp:691
   } else {
     HI.Definition = printType(QT, PP);
 
----------------
sammccall wrote:
> This seems like a pretty important case to handle.
> A wrinkle is that this gets treated as C++ code (e.g. client-side syntax highlighted).
> 
> So we might need something like
> 
> ```
> int64_t
> // aka
> long long
> ```
> 
> or
> ```
> int64_t
> // aka: long long
> ```
It seems we can't do this, vscode always display
```
int64_t
// aka: long long
```
as
```
int64_t
    // aka: long long
```

So I change it to `int64_t // aka: long long`


Repository:
  rZORG LLVM Github Zorg

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

https://reviews.llvm.org/D114522



More information about the cfe-commits mailing list