2013 · 32 citations · 6 references
ComputingComputer ScienceCompilersParallel ComputingSoftware EngineeringAbstract Syntax TreesCode GenerationCompiler ConstructionSoftware ConstructionSoftware MaintenanceSoftware RefactoringApi RefactoringAutomated RefactoringCode CompilationCodebase RefactoringCompiler DesignCompiler SupportMapreduceMapreduce Algorithms
Maintaining large code bases can be a challenging endeavour. As new libraries, APIs and standards are introduced, old code is migrated to use them. To provide as clean and succinct an interface as possible for developers, old APIs are ideally removed as new ones are introduced. In practice, this becomes difficult as automatically finding and transforming code in a semantically correct way can be challenging, particularly as the size of a code base increases. In this paper, we present a real-world implementation of a system to refactor large C++ code bases efficiently. A combination of the Clang compiler framework and the MapReduce parallel processor, ClangMR enables code maintainers to easily and correctly transform large collections of code. We describe the motivation behind such a tool, its implementation and then present our experiences using it in a recent API update with Google's C++ code base.
6
Sanjay Ghemawat · Communications of the ACM · 2008 · 18.5K citations · Full text
An enterprise perspective on technical debt
Tim Klinger, Peri Tarr, Patrick Wagstrom et al. · 2011 · 95 citations
Rejuvenating C++ programs through demacrofication
Aditya Kumar, Andrew M. Sutton, Bjarne Stroustrup · 2012 · 22 citations