Expose these as variables as that's what the standard calls them (and D131175).
To make this work, we also fix a bug in SelectionTree: PredefinedExpr has
an implicit/invisible StringLiteral, and SelectionTree should not traverse
implicit things.
Paths
| Differential D132135
[clangd] Support hover on __func__ etc (PredefinedExpr) ClosedPublic Authored by sammccall on Aug 18 2022, 7:04 AM.
Details Summary Expose these as variables as that's what the standard calls them (and D131175). To make this work, we also fix a bug in SelectionTree: PredefinedExpr has
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 18 2022, 8:05 AM Closed by commit rG13b2a0c69ba6: [clangd] Support hover on __func__ etc (PredefinedExpr) (authored by sammccall). · Explain WhyAug 19 2022, 5:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 453966 clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang-tools-extra/clangd/unittests/SelectionTests.cpp
|