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 formfor(auto &...:..)
- Use-nullptr transform: This converts older C-style usage of
NULL
or0
constants to ...
Get Getting Started with LLVM Core Libraries now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.