O'Reilly logo

Getting Started with LLVM Core Libraries by Rafael Auler, Bruno Cardoso Lopes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Refactoring tools

In this section, we present many other tools that perform code analysis and source-to-source transformations by leveraging Clang's parsing abilities. You should feel comfortable to use them in a way that is similar to that of clang-tidy, relying on your commands' database to simplify their usage.

Clang Modernizer

The Clang Modernizer is a revolutionary standalone tool that aids the user in adapting old C++ code to use the newest standards, for example, C++11. It reaches this goal by performing the following transformations:

  • Loop convert transform: This converts older C-style for(;;) loops to the newer range-based loop of the form for(auto &...:..)
  • Use-nullptr transform: This converts older C-style usage of NULL or 0 constants to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required