[PATCH] D129202: [clang] Add a fixit for warn-self-assign if LHS is a field with the same name as parameter on RHS
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 8 05:00:01 PDT 2022
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM with some minor stuff you can fix when landing. Thank you for this!
================
Comment at: clang/include/clang/Sema/Sema.h:5170-5171
+ FieldDecl *
+ getSelfAssignmentClassMemberCandidate(const ValueDecl *SelfAssigned);
+
----------------
Should this return a `const` pointer, and have some comments?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129202/new/
https://reviews.llvm.org/D129202
More information about the cfe-commits
mailing list