diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2014-02-19 17:44:11 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2014-02-19 17:44:11 +0000 |
| commit | f460d79f9854763df2377f0909ab2999aa78d013 (patch) | |
| tree | c7338c391c77c84d85e4a34560cffe4448c40cc5 /lib/CodeGen/CGExpr.cpp | |
| parent | 05d56ef2c5241802b9a371fcce19759fd6ee789b (diff) | |
| download | clang-f460d79f9854763df2377f0909ab2999aa78d013.tar.gz clang-f460d79f9854763df2377f0909ab2999aa78d013.tar.bz2 clang-f460d79f9854763df2377f0909ab2999aa78d013.tar.xz | |
[analyzer] Extend IdenticalExprChecker to check the two branches of an if.
This extends the checks for identical expressions to handle identical
statements, and compares the consequent and alternative ("then" and "else")
branches of an if-statement to see if they are identical, treating a single
statement surrounded by braces as equivalent to one without braces.
This does /not/ check subsequent branches in an if/else chain, let alone
branches that are not consecutive. This may improve in a future patch, but
it would certainly take more work.
Patch by Daniel Fahlgren!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
