CitedEvidence
User Settings

From C++ Refactorings to Graph Transformations

László Vidács,Martin Gogolla,Rudolf Ferenć-2006-12-01-SZTE Publicatio Repozitórium (University of Szeged)

TL;DRAbstract

In this paper, we study a metamodel for the C++ programming language. We work out refactorings on the C++ metamodel and present the essentials as graph transformations. The refactorings are demonstrated in terms of the C++ source code and the C++ target code as well. Graph transformations allow to capture refactoring details on a conceptual and easy to understand, but also very precise level. Using this approach we managed to formalize two major aspects of refactorings: the structural changes and the preconditions.

Chat with Paper

AI Agents for this Paper

In this paper, we study a metamodel for the C++ programming language. We work out refactorings on the C++ metamodel and present the essentials as graph transformations. The refactorings are demonstrated in terms of the C++ source code and the C++ target code as well. Graph transformations allow to capture refactoring details on a conceptual and easy to understand, but also very precise level. Using this approach we managed to formalize two major aspects of refactorings: the structural changes and the preconditions.

Keywords

Code refactoringMetamodelingComputer scienceProgramming languageGraphGraph rewritingSource codeSoftware engineering

Chat

Click to start Chat