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 | 51327f9237259a2469af7436faf259ba9d39cb4a (patch) | |
tree | 483d74070224525c1e43da2f3ffe862603b95c6c /lldb | |
parent | 1a4ae202c7371528555a9c52f601ae48cf8457e6 (diff) | |
download | bcm5719-llvm-51327f9237259a2469af7436faf259ba9d39cb4a.tar.gz bcm5719-llvm-51327f9237259a2469af7436faf259ba9d39cb4a.zip |
[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!
llvm-svn: 194236
Diffstat (limited to 'lldb')
0 files changed, 0 insertions, 0 deletions