On Detection of Gapped Code Clones using Gap Locations

  • Authors:
  • Yasushi Ueda;Toshihiro Kamiya;Shinji Kusumoto;Katsuro Inoue

  • Affiliations:
  • -;-;-;-

  • Venue:
  • APSEC '02 Proceedings of the Ninth Asia-Pacific Software Engineering Conference
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

It is generally said that code clone is one of the factors to make 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 some gaps between the original code portion and it.Here, we call such code portions include some gaps Gapped code clone.Up to the present, several code clone detection methods, which give consideration to such gap, have been proposed.However, it needs a lot of cost to detect all the gapped code clones.This paper proposes a new method to visualize the gapped code clones just as if they were actually detected, based on the detection results of conventional code clone.Using the propsed method, the developer an specify the target clones efficiently.More over, we implement the proposed method into the maintenance support environment and conduct the experimental evaluation.