Title :
On detection of gapped code clones using gap locations
Author :
Ueda, Yasushi ; Kamiya, Toshihiro ; Kusumoto, Shinji ; Inoue, Katsuro
Author_Institution :
Graduate Sch. of Inf. Sci. & Technol., Osaka Univ., Toyonaka, Japan
Abstract :
It is generally accepted that a code clone is one factor making software maintenance difficult. A code clone is a code portion in source files that is identical or similar to another. Clones are introduced because of various reasons such as reusing code by ´copy-and-paste´ and so on. Since developers usually modify the copied-and-pasted code portions, there are gaps between them and the original code portion. We call such code portions including gaps gapped code clones. Several code clone detection methods, which consider such gaps, have been proposed. However, it is costly to detect all gapped code clones. This paper proposes a new method to visualize gapped code clones as if they were actually detected, based on the detection results of conventional code clones. Using the proposed method, the developer can specify target clones efficiently. Moreover, we implement the proposed method in the maintenance support environment and conduct an experimental evaluation.
Keywords :
program visualisation; software maintenance; software reusability; code reuse; gap locations; gapped code clone detection; maintenance support environment; software maintenance; source files; visualization; Cloning; Software engineering;
Conference_Titel :
Software Engineering Conference, 2002. Ninth Asia-Pacific
Print_ISBN :
0-7695-1850-8
DOI :
10.1109/APSEC.2002.1183002