# Status of the C++11 Migrator

DevFeed: [Status of the C++11 Migrator](<https://devfeed.tech/articles/status-of-the-c-11-migrator-42880.md>)

Original publisher: [Read original article](<https://blog.llvm.org/2013/04/status-of-c11-migrator.html>)

Author: Edwin Vane

Published: 2013-04-15T05:53:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [clang](<https://devfeed.tech/topics/clang.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [ast-matchers](<https://devfeed.tech/topics/ast-matchers.md>), [LibTooling](<https://devfeed.tech/topics/libtooling.md>), [CMake](<https://devfeed.tech/topics/cmake.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Maintainability](<https://devfeed.tech/topics/maintainability.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [build](<https://devfeed.tech/tags/build.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clang](<https://devfeed.tech/tags/clang.md>), [cmake](<https://devfeed.tech/tags/cmake.md>), [development](<https://devfeed.tech/tags/development.md>), [libtooling](<https://devfeed.tech/tags/libtooling.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

The article reports progress on cpp11-migrate, a C++11 source-to-source migration tool built with Clang LibTooling and AST Matchers. It describes the project's early development, infrastructure and testing work, build requirements, and supported transformations, including range-based for loops, nullptr, auto, and override.

## Source excerpt

Since the design document for cpp11-migrate, the C++11 migrator tool, was first proposed in early December 2012 development has been making steady progress. In this article I'll talk about what's been implemented in cpp11-migrate so far, what's coming up, and how you can get involved. The purpose of the C++11 Migrator is to do source-to-source translation to migrate existing C++ code to use C++11 features to enhance maintainability, readability, runtime performance, and compile-time performance. Development is still early and transforms fall mostly into the first two categories. The migrator is based on Clang's LibTooling and the AST Matching library. Most of the development so far has been carried out by a small core group at Intel. Our focus so far has been to set up project infrastructure and testing, implement a few basic transforms, and make sure those transforms work well. Our aim is to make this tool useful to the community so we're always listening for transform ideas and feedback. How to Get cpp11-migratecpp11-migrate is located in the Extra Clang Tools repository. To build cpp11-migrate, you will need the LLVM and Clang sources as well. Follow the directions in Clang's Getting Started instructions making sure to perform the optional step of checking out the Extra Clang Tools repository. Once checked out into the correct directory the build system, after a reconfiguration, will automatically include the extra Clang tools as part of the next full build. If you're using the CMake build system, you can build just cpp11-migrate with the cpp11-migrate target. The check-clang-tools target provided by CMake will run all regression tests for extra Clang tools, including cpp11-migrate. The Transforms So FarThe C++11 Migrator currently supports four features of C++11: Range-based for loops The nullptr literal for null pointers The auto type specifier override virtual specifier The range-based for-loop transform once existed as a stand-alone tool called loop-convert c