Show string-literals' type and size in a hover card
Issue related: https://github.com/clangd/clangd/issues/1016
Paths
| Differential D137650
[clangd] Implement hover for string literals ClosedPublic Authored by v1nh1shungry on Nov 8 2022, 8:42 AM.
Details Summary Show string-literals' type and size in a hover card Issue related: https://github.com/clangd/clangd/issues/1016
Diff Detail
Event Timeline
Comment Actions @tom-anders Thanks for reviewing and for your suggestions!
Comment Actions Seems like I have made things too complex :( Should work for C, C++, and other languages now. v1nh1shungry retitled this revision from [clangd] Implement hover for C++ string literals to [clangd] Implement hover for string literals.Nov 8 2022, 9:35 PM This revision is now accepted and ready to land.Nov 10 2022, 1:17 AM Comment Actions
LGTM! Closed by commit rG92297bde5ce1: [clangd] Implement hover for string literals (authored by v1nh1shungry, committed by kadircet). · Explain WhyNov 10 2022, 3:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 474493 clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
|
Is it really useful to show the contents inside the Hover? You already see the contents of the string literal anyway, so I don't think this adds any value