#
96034ca1 |
| 26-Jul-2016 |
Artem Dergachev <artem.dergachev@gmail.com> |
[analyzer] Hotfix for build failure due to declaration shadowing in r276782.
CloneDetector member variable is shadowing the class with the same name, which causes build failures on some platforms.
[analyzer] Hotfix for build failure due to declaration shadowing in r276782.
CloneDetector member variable is shadowing the class with the same name, which causes build failures on some platforms.
llvm-svn: 276791
show more ...
|
#
ba816326 |
| 26-Jul-2016 |
Artem Dergachev <artem.dergachev@gmail.com> |
[analyzer] Add basic capabilities to detect source code clones.
This patch adds the CloneDetector class which allows searching source code for clones.
For every statement or group of statements wit
[analyzer] Add basic capabilities to detect source code clones.
This patch adds the CloneDetector class which allows searching source code for clones.
For every statement or group of statements within a compound statement, CloneDetector computes a hash value, and finds clones by detecting identical hash values.
This initial patch only provides a simple hashing mechanism that hashes the kind of each sub-statement.
This patch also adds CloneChecker - a simple static analyzer checker that uses CloneDetector to report copy-pasted code.
Patch by Raphael Isemann!
Differential Revision: https://reviews.llvm.org/D20795
llvm-svn: 276782
show more ...
|