Tracking Code Clones in Evolving Software
Ekwa Duala-Ekoko, Martin P. Robillard · Proceedings/Proceedings - International Conference on Software Engineering · 2007
Code clones are generally considered harmful in software development, and the predominant approach is to try to eliminate them through refactoring. However, recent research has provided evidence that it may not always be practical, feasible, or cost-effective to eliminate certain clone groups. We propose a technique for tracking clones in evolving software. Our technique relies on the concept of abstract clone region descriptors (CRD), which describe clone regions within methods in a robust way that is independent from the exact text of the clone region or its location in a file. We present our definition of CRDs, and describe a complete clone tracking system capable of producing CRDs from the output of a clone detection tool, notify developers of modifications to clone regions, and support the simultaneous editing of clone regions. We report on two experiments and a case study conducted to assess the performance and usefulness of our approach.
Cited by 216 works. doi:10.1109/icse.2007.90
Authors
References
- Refactoring: Improving the Design of Existing Code
- A technique for computer detection and correction of spelling errors
- CCFinder: a multilinguistic token-based code clone detection system for large scale source code
- An Overview of Sequence Comparison: Time Warps, String Edits, and Macromolecules
- An empirical study of code clone genealogies
- UMLDiff
- An ethnographic study of copy and paste programming practices in oopl
- Partial redesign of Java software systems based on clone analysis
- An empirical study of code clone genealogies
- Interactive Simultaneous Editing of Multiple Text Regions