Refactoring Detection in C++ Programs with RefactoringMiner++

Benjamin Ritz, Aleksandar Karakaš, Denis Helic*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference paperpeer-review

Abstract

Commits often involve refactorings-behavior-preserving code modifications aiming at software design improvements. Refactoring operations pose a challenge to code reviewers, as distinguishing them from behavior-altering changes is often not a trivial task. Accordingly, research on automated refactoring detection tools has flourished over the past two decades, however, the majority of suggested tools is limited to Java projects. In this work, we present RefactoringMiner++, a refactoring detection tool based on the current state of the art: RefactoringMiner 3. While the latter focuses exclusively on Java, our tool is-to the best of our knowledge-the first publicly available refactoring detection tool for C++ projects. Being based on a refactoring detector for Java projects, our tool lacks support for many refactorings specific to C++. The most common language-independent refactoring types, however, are supported and even several language incompatibilities were reconciled. RefactoringMiner’s thorough evaluation provides confidence in our tool’s performance. In addition, we test RefactoringMiner++ on a small seeded dataset and demonstrate the tool’s capability in a short demo involving both refactorings and behavior-altering changes. A screencast demonstrating our tool can be found at https://www.youtube.com/watch?v=tFTysQfGYSM.

Original languageEnglish
Title of host publicationProceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering
EditorsJingyue Li
PublisherAssociation for Computing Machinery (ACM)
Pages1163-1167
Number of pages5
ISBN (Electronic)9798400712760
DOIs
Publication statusPublished - 28 Jul 2025
Event33rd ACM International Conference on the Foundations of Software Engineering, FSE Companion 2025 - Trondheim, Norway
Duration: 23 Jun 202527 Jun 2025

Publication series

NameProceedings of the ACM SIGSOFT Symposium on the Foundations of Software Engineering
ISSN (Print)1539-7521

Conference

Conference33rd ACM International Conference on the Foundations of Software Engineering, FSE Companion 2025
Country/TerritoryNorway
CityTrondheim
Period23/06/2527/06/25

Keywords

  • C++
  • Refactoring Detection
  • RefactoringMiner

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Refactoring Detection in C++ Programs with RefactoringMiner++'. Together they form a unique fingerprint.

Cite this