Stereo: editing clones refactored as code generators - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Conference Papers Year : 2018

Stereo: editing clones refactored as code generators


Clone detection is a largely mature technology able to detect many code duplications, also called clones, in software systems of practically any size. The classic approaches to clone management are either clone removal, which consists in refactoring clones as an available language abstraction, or clone tracking, using a so-called linked editor, able to propagate changes between clone instances. However, past studies have shown that clone removal is not always feasible due to the limited expressiveness of language abstractions, or not desirable because of the abstraction overhead or the risks inherent to the refactoring. Linked editors, on the other hand, provide costless abstraction at no risk, but have their own issues, such as limited expressiveness, scalability, and controllability. This paper presents a new approach in which clones are safely refactored as code generators, but the unmodified code is presented to the maintainers with the same look-and-feel as in a linked editor. This solution has good expressiveness, scalability, and controllability properties. A prototype such editor is presented along with a first application within an industrial project.
Fichier principal
Vignette du fichier
stereo.pdf (486.01 Ko) Télécharger le fichier
Origin Files produced by the author(s)

Dates and versions

hal-01882545 , version 1 (27-09-2018)


  • HAL Id : hal-01882545 , version 1


Nic Volanschi. Stereo: editing clones refactored as code generators. ICSME 2018 - 34th IEEE International Conference on Software Maintenance and Evolution, Sep 2018, Madrid, Spain. ⟨hal-01882545⟩


108 View
194 Download


Gmail Mastodon Facebook X LinkedIn More