[PATCH] D45685: [Sema] Add -wtest global flag that silences -Wself-assign for overloaded operators.
David Blaikie via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 16 11:59:23 PDT 2018
dblaikie added a subscriber: lebedev.ri.
dblaikie added a comment.
I'm not sure this is a practical direction to pursue - though perhaps
others disagree.
It's likely non-trivial to plumb a flag through most build systems to be
applied only to test code (& likely would suppress the warning in headers
only included in test code - so for example, in a header-only library if
the user ran their tests they wouldn't see the warning, but when the users
code was used in some other production code it might warn (& possibly break
the build if -Werror is in use))
Repository:
rC Clang
https://reviews.llvm.org/D45685
More information about the cfe-commits
mailing list