diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-01 18:24:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-02-01 18:24:22 +0000 |
commit | 0e2dc3a1159806c8303b0979be1ce1526cc64ed3 (patch) | |
tree | af7b32e291a316e1c5e7fae41b03e46fece42813 /lib/Frontend/ASTUnit.cpp | |
parent | 63b54104700873dc4a5b95b3108052580b5370e7 (diff) |
Warn for "if ((a == b))" where the equality expression is needlessly wrapped inside parentheses.
It's highly likely that the user intended an assignment used as condition.
Addresses rdar://8848646.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions