Artem Dergachev
2fc1985db3
[analyzer] Teach CloneDetector to find clones that look like copy-paste errors.
...
The original clone checker tries to find copy-pasted code that is exactly
identical to the original code, up to minor details.
As an example, if the copy-pasted code has all references to variable 'a'
replaced with references to variable 'b', it is still considered to be
an exact clone.
The new check finds copy-pasted code in which exactly one variable seems
out of place compared to the original code, which likely indicates
a copy-paste error (a variable was forgotten to be renamed in one place).
Patch by Raphael Isemann!
Differential Revision: https://reviews.llvm.org/D23314
llvm-svn: 279056
2016-08-18 12:29:41 +00:00
..
2016-08-12 17:46:23 +00:00
2016-01-30 01:27:06 +00:00
2015-09-16 22:03:05 +00:00
2016-01-29 19:38:18 +00:00
2016-02-10 19:11:58 +00:00
2015-09-16 22:03:05 +00:00
2015-09-02 20:01:30 +00:00
2016-03-23 16:14:12 +00:00
2015-12-28 13:06:58 +00:00
2015-09-16 22:03:05 +00:00
2016-07-28 00:52:10 +00:00
2016-07-28 17:18:33 +00:00
2015-11-26 22:08:58 +00:00
2015-09-08 03:50:52 +00:00
2016-07-18 19:02:11 +00:00
2016-04-28 01:09:09 +00:00
2016-04-28 01:09:09 +00:00
2016-08-18 12:29:41 +00:00
2016-08-18 09:13:37 +00:00
2016-08-17 16:02:45 +00:00
2016-08-17 15:37:52 +00:00
2015-07-03 15:12:24 +00:00
2016-07-21 23:42:31 +00:00
2016-06-24 16:26:43 +00:00
2015-12-01 09:00:41 +00:00
2016-01-29 18:43:15 +00:00
2016-01-26 18:05:23 +00:00
2015-09-16 22:03:05 +00:00
2016-08-18 07:54:50 +00:00
2016-08-18 07:54:50 +00:00
2016-01-15 15:22:05 +00:00
2015-09-16 22:03:05 +00:00
2015-12-28 13:06:58 +00:00
2015-12-28 13:06:58 +00:00
2016-04-11 08:26:13 +00:00
2015-08-13 18:12:56 +00:00
2016-07-30 16:16:51 +00:00
2016-08-18 07:54:50 +00:00
2016-02-16 02:14:44 +00:00
2016-08-18 07:54:50 +00:00
2016-07-09 12:16:58 +00:00
2015-09-08 03:50:52 +00:00
2015-09-16 22:03:05 +00:00
2015-12-30 00:08:59 +00:00
2015-09-16 22:03:05 +00:00
2016-06-24 04:05:48 +00:00
2016-08-18 07:54:50 +00:00
2015-09-16 22:03:05 +00:00
2015-12-28 13:06:58 +00:00
2016-02-10 19:11:58 +00:00
2015-09-08 03:50:52 +00:00
2015-12-28 13:06:58 +00:00
2016-03-04 14:18:52 +00:00
2015-07-03 15:12:24 +00:00
2016-08-15 20:16:13 +00:00
2016-07-18 19:02:11 +00:00
2015-09-16 22:03:05 +00:00
2016-07-18 19:02:11 +00:00
2016-08-18 07:54:50 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2016-05-27 14:27:13 +00:00
2016-05-26 14:02:17 +00:00
2016-07-18 19:02:11 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2016-02-19 01:35:10 +00:00
2016-05-27 14:27:13 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2015-09-16 22:03:05 +00:00
2016-01-30 01:27:06 +00:00
2016-01-26 19:01:06 +00:00
2015-09-08 03:50:52 +00:00
2016-02-10 19:11:58 +00:00