This is an archive of the discontinued LLVM Phabricator instance.

[clang] Annotate trivial getters and setters on hover.
ClosedPublic

Authored by sammccall on Apr 3 2020, 8:29 AM.

Details

Summary

(Only if their definitions are visible and they have no other docs)

Diff Detail

Event Timeline

sammccall created this revision.Apr 3 2020, 8:29 AM
kadircet accepted this revision.Apr 3 2020, 9:35 AM

LGTM, thanks!

clang-tools-extra/clangd/Hover.cpp
376

if(!ReturnedMember) return None

This revision is now accepted and ready to land.Apr 3 2020, 9:35 AM
sammccall marked 2 inline comments as done.Apr 3 2020, 11:26 AM
sammccall added inline comments.
clang-tools-extra/clangd/Hover.cpp
376

Oops, also forgot to check the base of the MemberExpr was CXXThisExpr.

This revision was automatically updated to reflect the committed changes.
sammccall marked an inline comment as done.