Preview

Proceedings of the Institute for System Programming of the RAS (Proceedings of ISP RAS)

Advanced search

Automatic clone detection for refactoring

Abstract

The article discusses the possibility to combine automatic refactoring with detection of repeating fragments in C/C++ source code. Classification of clones is proposed in terms of their further use during automatic refactoring. For each clone type the method for detection is described. Shortcomings of existing tools are pointed out and it is shown that proposed method works correctly in considered situations. The approach described in this article has been implemented in Klocwork inSight refactoring tool.

About the Author

N. G. Zetser
ИСП РАН
Russian Federation


References

1. M. Fowler., K. Beck, J. Brant, W. Opdyke, D. Roberts. Refactoring. Improve the design of exesting code. Addison-Wesley, 2001

2. http://www.semdesigns.com/products/clone/CCloneDR.html

3. http://www.ccfinder.net

4. T. Cormen, C. Leiserson, R. Rivest, K.Stein Introduction to Algorithms. MIT Press, 2002


Review

For citations:


Zetser N.G. Automatic clone detection for refactoring. Proceedings of the Institute for System Programming of the RAS (Proceedings of ISP RAS). 2013;25:39-50. (In Russ.)



Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.


ISSN 2079-8156 (Print)
ISSN 2220-6426 (Online)