[PATCH] D44883: [Sema] Extend -Wself-assign with -Wself-assign-overloaded to warn on overloaded self-assignment (classes)

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 26 12:38:25 PDT 2018


rjmccall added a comment.

Is D not considered trivial there?  Ugh, C++.

Well, we certainly could justify treating D as a builtin operator as well, since it doesn't involve running any user code, but I don't think you're obligated to write a whole bunch of analysis just to make that work if the information isn't already easily accessible.


Repository:
  rC Clang

https://reviews.llvm.org/D44883





More information about the cfe-commits mailing list