Hi all,
we did some work on Dude.
One thing that was bothering us was that it cleaned the source code
(remove comments, '{', ...), but left empty lines behind that interfered
with the detection.
To correct that:
- DudeSourceCodeLine now keeps the lineno of its line in the original
source code
- empty lines do not generate any DudeSourceCodeLine
- DudeSourceCodeFragment keeps beginLine and endline in terms of real
line numbers in the source code
- DudeSourceCodeFragment also has to keep the length of the clone
fragment as the number of non empty lines (previously it would be
computed from beginLine and endline)
- and we had to refactor the code in various places to deal with these
changes
Overall, a rather big commit, but the tests (new and old) are green
nicolas
Name: SmallDude-Core-NicolasAnquetil.46
Author: NicolasAnquetil
Time: 30 September 2014, 1:42:10.634399 pm
UUID: f5004983-82f1-4649-8e8e-efe22776cb35
Ancestors: SmallDude-Core-TudorGirba.45
changed Dude so that empty lines are discarded when computing clones
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.iam.unibe.ch/mailman/listinfo/moose-dev