Труды Института системного программирования РАН (Oct 2018)

Automatic clone detection for refactoring

  • N. G. Zetser

Journal volume & issue
Vol. 25, no. 0
pp. 39 – 50

Abstract

Read online

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.

Keywords