In the initial hover expression patch (https://reviews.llvm.org/D72500), we
disabled all literals.
There is some value on running hover on character literals (e.g. see the
int value of the char).
Differential D117864
[clangd] Enable hover on character literal. hokein on Jan 21 2022, 1:12 AM. Authored by
Details
In the initial hover expression patch (https://reviews.llvm.org/D72500), we There is some value on running hover on character literals (e.g. see the
Diff Detail
Event Timeline
|
there may be some value to enable StringLiteral as well (e.g. see the length of the string), but it seems to work partially:
Looks like the reason is that EvaluateAsRValue fails on a lvalue StringLiteral. It'd require a bit of work to make it useful for common cases.