summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-12-10 18:18:06 +0000
committerJordan Rose <jordan_rose@apple.com>2013-12-10 18:18:06 +0000
commit1dff6422f8e8cdc6268b444af797f16e0c45b2d9 (patch)
tree0e30ac272e08205f9d63a1e9bd035483ba2e95d2 /lib/CodeGen/CGExpr.cpp
parent6392501cc93ba3eb898ae8a69f1cd6597794961b (diff)
downloadclang-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/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions