ICCheck:一种跨语言、可移植的代码克隆同步工具
ICCheck: A Portable, Language-Agnostic Tool for Synchronizing Code Clones
AI总结:
ICCheck 是一种跨语言、可移植的代码克隆同步工具,通过现有无语言依赖的克隆搜索技术,结合 Git 仓库实现,能够在多种编程语言和开发环境中检测并建议同步代码克隆的修改。
摘要:
不一致的代码克隆修改可能导致软件缺陷。现有方法多基于克隆检测和更改模式提取来支持一致修改,但缺乏跨多种编程语言和开发环境的克隆同步工具。本文提出 ICCheck,一种语言无关且可移植的工具,利用现有无语言依赖的克隆搜索技术,并仅依赖现有 Git 仓库作为外部依赖。通过在多个开源仓库中验证,ICCheck 能够检测超过 30 种编程和领域特定语言中的被忽视克隆修改,并在编辑器环境中以中位数 0.27 秒提供交互建议,证明其语言无关性和响应性。此外,通过支持 Language Server Protocol,ICCheck 可以以最小努力集成到多种开发环境中。ICCheck 可在 https://github.com/salab/iccheck 获取。
英文摘要:
Inconsistent modifications to code clones can lead to software defects. Many approaches exist to support consistent modifications based on clone detection and/or change pattern extraction. However, no tool currently supports synchronization of code clones across diverse programming languages and development environments. We propose ICCheck, a tool designed to be language-agnostic and portable across various environments. By leveraging an existing language-agnostic clone search technique and limiting the tool's external dependency to an existing Git repository, we developed a tool that can assist in synchronizing code clones in diverse environments. We validated the tool's functionality in multiple open-source repositories, where ICCheck was able to detect overlooked clone modifications in over 30 programming and domain-specific languages and delivered interactive suggestions within a median of 0.27 seconds in editor environments, demonstrating its language independence and responsiveness. Furthermore, by supporting the Language Server Protocol, we confirmed that ICCheck can be integrated into multiple development environments with minimal effort. ICCheck is available at https://github.com/salab/iccheck
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。