REFACTORING OF C/C++ PREPROCESSOR CONSTRUCTS AT THE MODEL LEVEL

László Vidács

2009

Abstract

Preprocessor directives are usually omitted from the analysis of C/C++ software, yet they play an important role especially in program transformations. Here a method is presented for refactoring preprocessor constructs at the model level. Refactorings are carried out on program models derived from a reverse engineering process of real-life software. We present a metamodel of preprocessing on which a graph transformation approach is used to elaborate refactorings. The method is presented through the elaboration of the add parameter refactoring both at schematic and concrete level. Safe transformations are assured by visual control and validated by the evaluation of OCL expressions. The usability of the idea is validated by successful experiments.

Download


Paper Citation


in Harvard Style

Vidács L. (2009). REFACTORING OF C/C++ PREPROCESSOR CONSTRUCTS AT THE MODEL LEVEL . In Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT, ISBN 978-989-674-009-2, pages 232-237. DOI: 10.5220/0002258302320237

in Bibtex Style

@conference{icsoft09,
author={László Vidács},
title={REFACTORING OF C/C++ PREPROCESSOR CONSTRUCTS AT THE MODEL LEVEL},
booktitle={Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT,},
year={2009},
pages={232-237},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0002258302320237},
isbn={978-989-674-009-2},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 4th International Conference on Software and Data Technologies - Volume 1: ICSOFT,
TI - REFACTORING OF C/C++ PREPROCESSOR CONSTRUCTS AT THE MODEL LEVEL
SN - 978-989-674-009-2
AU - Vidács L.
PY - 2009
SP - 232
EP - 237
DO - 10.5220/0002258302320237