commit | 995e4a7530d705147c875b63608532c483c011a8 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Jan 17 22:06:26 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Thu Jan 17 22:06:26 2013 +0000 |
tree | ead70b7875eea8777ff0ab9114a832e13cd9b770 | |
parent | 0234179282d59e6dfccc8b2da72a9a71bf5b6ac3 [diff] |
-Wunsequenced: if the LHS of an &&, || or ?: is not constant, check for unsequenced operations in the RHS. We don't compare the RHS with the rest of the expression yet; such checks will need care to avoid diagnosing unsequenced operations which are both in conditionally-evaluated subexpressions which actually can't occur together, such as in '(b && ++x) + (!b && ++x)'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172760 91177308-0d34-0410-b5e6-96231b3b80d8