[PATCH] D18264: [clang-tidy] misc-assign-operator-signature checker checks return value of all assign operators

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 10:20:01 PDT 2016


xazax.hun added a comment.

According to cpp core guidelines any assignment operator should return *this.
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rf-assignment-op

So in case this check is activated by using an alias it should not be a special case.


http://reviews.llvm.org/D18264





More information about the cfe-commits mailing list