summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2016-07-26 18:13:12 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2016-07-26 18:13:12 +0000
commitba816326f336beddd19e59067577d4bf0e592efa (patch)
tree9e13de8ed65e90063ff73d8c538f225a2655646b /llvm/lib/MC
parentf8df4d111758ef0939e7c10773cfeb6adc872618 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud