[PATCH] D146897: [clang:diagnostics] Turning off warn_self_assignment_overloaded for user-defined compound assignments

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 7 11:46:42 PDT 2023


rjmccall added inline comments.


================
Comment at: clang/lib/Sema/SemaExpr.cpp:15660
   case BO_Assign:
+    // Skip diagnose on compound assignment.
+    DiagnoseSelfAssignment(S, LHS, RHS, OpLoc, false);
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146897/new/

https://reviews.llvm.org/D146897



More information about the cfe-commits mailing list