[clang-tools-extra] [clangd] Show comment of field on hover (PR #182738)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 13 01:31:42 PDT 2026
================
@@ -541,75 +557,91 @@ std::optional<StringRef> getterVariableName(const CXXMethodDecl *CMD) {
// void foo(T arg) { FieldName = std::move(arg); }
// R foo(T arg) { FieldName = std::move(arg); return *this; }
// then returns "FieldName"
-std::optional<StringRef> setterVariableName(const CXXMethodDecl *CMD) {
+// Returns the LHS expression of the assignment in a trivial setter body, or
+// nullptr if the method does not match the pattern of a trivial setter.
----------------
timon-ul wrote:
Oops, yes you are correct.
https://github.com/llvm/llvm-project/pull/182738
More information about the cfe-commits
mailing list