diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-12-10 18:18:06 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-12-10 18:18:06 +0000 |
| commit | 1dff6422f8e8cdc6268b444af797f16e0c45b2d9 (patch) | |
| tree | 0e30ac272e08205f9d63a1e9bd035483ba2e95d2 /lib/CodeGen/CGExprComplex.cpp | |
| parent | 6392501cc93ba3eb898ae8a69f1cd6597794961b (diff) | |
| download | clang-1dff6422f8e8cdc6268b444af797f16e0c45b2d9.tar.gz clang-1dff6422f8e8cdc6268b444af797f16e0c45b2d9.tar.bz2 clang-1dff6422f8e8cdc6268b444af797f16e0c45b2d9.tar.xz | |
[analyzer] Extend IdenticalExprChecker to check ternary operator results.
Warn if both result expressions of a ternary operator (? :) are the same.
Because only one of them will be executed, this warning will fire even if
the expressions have side effects.
Patch by Anders Rönnholm and Per Viberg!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions
