This is an archive of the discontinued LLVM Phabricator instance.

[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
an implicit/invisible StringLiteral, and SelectionTree should not traverse
implicit things.

Diff Detail

Event Timeline

sammccall created this revision.Aug 18 2022, 7:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 7:04 AM
Herald added a subscriber: arphaman. · View Herald Transcript
sammccall requested review of this revision.Aug 18 2022, 7:04 AM
sammccall updated this revision to Diff 453652.Aug 18 2022, 7:11 AM

fix type to be const in both c & c++, not sure where I got that idea from...

ckandeler accepted this revision.Aug 18 2022, 8:05 AM

Works fine for me.

This revision is now accepted and ready to land.Aug 18 2022, 8:05 AM
This revision was automatically updated to reflect the committed changes.