首页> 外文会议>IEEE International Conference on Software Maintenance and Evolution >Stereo: Editing Clones Refactored as Code Generators
【24h】

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.
机译:克隆检测是一种很大程度上的成熟技术,能够在实际上任何尺寸的软件系统中检测许多代码重复性,也称为克隆。克隆管理的经典方法是克隆删除,它包括使用所谓的链接编辑器作为可用语言抽象的重构克隆或克隆跟踪,能够在Clone实例之间传播更改。然而,过去的研究表明,由于语言抽象的表现力有限,而是由于抽象开销或重构固有的风险而不希望,因此由于语言抽象的有限或不可取的克隆去除并不总是可行的。另一方面,链接的编辑提供无需风险的无成本抽象,但有自己的问题,例如有限的表现力,可扩展性和可控性。本文介绍了一种新的方法,其中克隆是代码生成器安全地重构的新方法,但未修改的代码被呈现给具有与链接编辑器相同的外观和觉得的维护者。该解决方案具有良好的表达性,可扩展性和可控性。在工业项目中提出了原型此类编辑器。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号