[clang] SequenceChecker: C++17 sequencing rule for overloaded operators.
authorBruno Ricci <riccibrun@gmail.com>
Sat, 20 Jun 2020 09:51:46 +0000 (10:51 +0100)
committerBruno Ricci <riccibrun@gmail.com>
Sat, 20 Jun 2020 09:51:46 +0000 (10:51 +0100)
commitf5bbe390d23d7da0ffb110cdb24b583c2dc87eba
treec0a0b72e7dd768ff244db6817547214f8ed0f689
parentab888262b32bcdbf9c117e29b90b88c27859bb35
[clang] SequenceChecker: C++17 sequencing rule for overloaded operators.

In C++17 the operand(s) of an overloaded operator are sequenced as for
the corresponding built-in operator when the overloaded operator is
called with the operator notation ([over.match.oper]p2).

Reported in PR35340.

Differential Revision: https://reviews.llvm.org/D81330

Reviewed By: rsmith
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaCXX/warn-unsequenced.cpp