[PATCH] D77408: [clang] Annotate trivial getters and setters on hover.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 3 09:41:12 PDT 2020
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
LGTM, thanks!
================
Comment at: clang-tools-extra/clangd/Hover.cpp:376
+llvm::Optional<StringRef> fieldName(const Expr *E) {
+ const auto *ReturnedMember = llvm::dyn_cast<MemberExpr>(E->IgnoreCasts());
+ const auto *Field =
----------------
if(!ReturnedMember) return None
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77408/new/
https://reviews.llvm.org/D77408
More information about the cfe-commits
mailing list