diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-11-08 01:15:39 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-11-08 01:15:39 +0000 |
| commit | 9a7a568821b85cc83b80056268ef0dc32aecea12 (patch) | |
| tree | 886c2c7bf2d6b2de469005f3de48c09ec3dda78d /lib/CodeGen/CGExprScalar.cpp | |
| parent | 219103d76a10b35b5a1e8d2b6737cf724a7cfee7 (diff) | |
| download | clang-9a7a568821b85cc83b80056268ef0dc32aecea12.tar.gz clang-9a7a568821b85cc83b80056268ef0dc32aecea12.tar.bz2 clang-9a7a568821b85cc83b80056268ef0dc32aecea12.tar.xz | |
[analyzer] Add IdenticalExprChecker, to find copy-pasted code.
This syntactic checker looks for expressions on both sides of comparison
operators that are structurally the same. As a special case, the
floating-point idiom "x != x" for "isnan(x)" is left alone.
Currently this only checks comparison operators, but in the future we could
extend this to include logical operators or chained if-conditionals.
Checker by Per Viberg!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194236 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
0 files changed, 0 insertions, 0 deletions
