This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Show parameter hints for operator()
ClosedPublic

Authored by zyounan on Aug 26 2023, 3:29 AM.

Diff Detail

Event Timeline

zyounan created this revision.Aug 26 2023, 3:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 26 2023, 3:29 AM
zyounan requested review of this revision.Aug 26 2023, 3:29 AM
nridge accepted this revision.Sep 5 2023, 1:19 AM
nridge added inline comments.
clang-tools-extra/clangd/InlayHints.cpp
626

Huh, that's an interesting inconsistency between CXXMemberCallExpr and CXXOperatorCallExpr (that one include th implied object argument in getArgs() and the other doesn't)

As always, thank you for writing thorough tests that give us confidence we're doing the right thing :)

1223

nit: this method can be static

This revision is now accepted and ready to land.Sep 5 2023, 1:19 AM
zyounan marked 2 inline comments as done.Sep 9 2023, 10:34 PM
zyounan added inline comments.
clang-tools-extra/clangd/InlayHints.cpp
626

I'm glad to hear that! Thank you.

zyounan updated this revision to Diff 556358.Sep 9 2023, 10:35 PM
zyounan marked an inline comment as done.

Address a nit comment

This revision was automatically updated to reflect the committed changes.