A Tool for Transforming the Type of a Container in C++ Code
C++ provides a rich and handy library called Standard Template Library that is based on the generic programming paradigm. STL includes many useful containers like vector, linked lists, etc. The selection of the utilized container may have a significant impact on the developed applications’ performance regarding runtime, memory consumption and management, etc. Unfortunately, the architecture of the library does not support altering this selection in a straighforward way. Evaluation of the selection can be quite difficult. Different containers may have methods with the same name, but they can differ in the provided methods and iterator capabilities. In this paper, we present a static analyzer tool that aims at the manipulation of a container type by changing it in existing code bases. The proposed tool is based on the Clang compiler infrastructure. For making the transformation seemless, we provide some class templates to hide the differences of methods.
Mon 16 MarDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
13:30 - 15:00 | SCLIT 2026SCLIT at Seminar Room 131 Chair(s): Nicolás Cardozo Universidad de los Andes, Gordana Rakić University of Novi Sad | ||
13:30 20mTalk | A Tool for Transforming the Type of a Container in C++ Code SCLIT Ábel Szauter ELTE Eötvös Loránd University, Budapest, Hungary, Norbert Pataki Eötvös Loránd University, Faculty of Informatics, Department of Programming Languages and Compilers Link to publication | ||
13:50 20mTalk | Comparing Large Language Models and Traditional Clone Detection Tools for Intra- and Cross-Language Code Clone Detection SCLIT Luka Vranković Department of Mathematics and Informatics, Faculty of Sciences, University of Novi Sad, Gordana Rakić University of Novi Sad Link to publication | ||
14:10 50mKeynote | Python With Free Threading and Just-In-Time Compilation: A Blessing or a Curse? SCLIT Stefan Marr Johannes Kepler University Linz | ||