lh123 added inline comments.

================
Comment at: clang-tools-extra/clangd/Hover.cpp:423
+      //  - certain expressions (sizeof etc)
+      //  - built-in types
     }
----------------
sammccall wrote:
> lh123 wrote:
> > I think we should also support hover on literal.
> sure - can you explain what you'd like to see/when you'd expect it to be 
> useful?
such as:
1. Hovering on "abc" shows char[4], we can get the length information of the 
string.
2. Get actual type for user-defined literal types.
```c++
struct foo {};
struct foo {};

foo operator""_foo(unsigned long long v) { return {}; }

int main() {
    1_foo;
}

```



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70359



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to