-
Book Overview & Buying
-
Table Of Contents
Getting started with LLVM core libraries
By :
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.
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 represent a null pointer to use the newer nullptr C++11 keyword
Use-auto transform: This converts some type declarations to use the auto keyword in specific cases, which improves code readability
Add-override transform: This adds the override...
Change the font size
Change margin width
Change background colour