2024-03-29T05:39:12Zhttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_oaipmhoai:ipsj.ixsq.nii.ac.jp:000955802023-04-27T10:00:04Z01164:01384:07092:07289
版管理システムを用いた開発プロセスに適したコードクローン修正支援ツールの検討Discussion on Code Clone Modification Tool for Development Process with Version Control Systemjpnコードクローン・プログラム解析http://id.nii.ac.jp/1001/00095558/Technical Reporthttps://ipsj.ixsq.nii.ac.jp/ej/?action=repository_action_common_download&item_id=95580&item_no=1&attribute_id=1&file_no=1Copyright (c) 2013 by the Information Processing Society of Japan奈良先端科学技術大学院大学奈良先端科学技術大学院大学奈良先端科学技術大学院大学奈良先端科学技術大学院大学藤原, 雄介藤原, 賢二吉田, 則裕飯田, 元コードクローンとはソースコード中に存在する,互いに一致または類似したコード片を指す.コードクローンを変更する際に,対応する全てのコードクローンに対して一貫した修正を行うべきか検討する必要がある.コードクローンに対する修正の一貫性を確認するためには,開発者はソースコードを変更する度にコードクローン検出ツールを起動する必要があり,実装に専念する事が難しくなる.開発環境にコードクローン検出ツールを組み込み,開発者がソースコードを変更する度にコードクローン検出を実施する方法が解決策として考えられる.しかし,ソースコードの修正完了前にコードクローンに対する変更が頻繁に通知されるため,実装を妨げると考えられる.コードクローンに対する変更を通知する頻度として,版管理システムへのコミット単位が考えられる.コミット単位であれば,頻度は小さく,かつ編集作業が完了しているため,実装の妨げにならないと考えられる.本研究では,版管理システムとコードクローン検出ツールとの連携に関する研究について述べ,その後版管理システムを用いた開発プロセスに適したコードクローン修正支援ツールの要件を検討する.最後に,検討した要件を踏まえて開発中のツールを紹介する.A code clone is a code fragment that has identical or similar code fragments to it in the source code. If developers modify a code clone, they have to determine whether or not to modify the corresponding code clones in source code. To keep the consistency of code clones, developers run a clone detection tool when they modify one of the code clones. This prevents the developers from concentrating on coding. A considerable solution is integrating a code clone detection tool into IDE, and detecting code clones when a developer changes source code. However, if a number of clone changes are notified when a developer complete a modification, this also prevents the developers from concentrating on coding. A commit of a version control system is a considerable timing of notifying clone changes. Because it is not frequent but also means the completion of a modification, commit-level notification does not interrupt implementation. In this study, we describe existing works related with the integration of version control system and code clone detection tool, and then discuss requirements of a clone modification tool for development process with version control. Finally, we introduce a tool satisfying the requirements under development.AN10112981研究報告ソフトウェア工学(SE)2013-SE-18230162013-10-172013-10-11