diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2016-07-26 18:13:12 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2016-07-26 18:13:12 +0000 |
commit | ba816326f336beddd19e59067577d4bf0e592efa (patch) | |
tree | 9e13de8ed65e90063ff73d8c538f225a2655646b /llvm/lib/MC | |
parent | f8df4d111758ef0939e7c10773cfeb6adc872618 (diff) | |
download | bcm5719-llvm-ba816326f336beddd19e59067577d4bf0e592efa.tar.gz bcm5719-llvm-ba816326f336beddd19e59067577d4bf0e592efa.zip |
[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
Diffstat (limited to 'llvm/lib/MC')
0 files changed, 0 insertions, 0 deletions