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

Brooks Moses via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 16 02:06:35 PDT 2018


brooksmoses added a comment.

A further concern about this in the general case from the reviewer of one of my test-cleanup changes: The "var = *&var" idiom is not necessarily equivalent to "var = var" in cases of user-defined types, because operator& may be overloaded.


Repository:
  rC Clang

https://reviews.llvm.org/D44883





More information about the cfe-commits mailing list