Skip to Main Content
Getting started with LLVM core libraries
book

Getting started with LLVM core libraries

by Bruno Lopes, Rafael Auler
August 2014
Beginner to intermediate content levelBeginner to intermediate
314 pages
7h 57m
English
Packt Publishing
Content preview from Getting started with LLVM core libraries

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

LLVM Techniques, Tips, and Best Practices Clang and Middle-End Libraries

Min-Yih Hsu
LLVM Cookbook

LLVM Cookbook

Mayur Pandey, Suyog Sarda
LLVM Essentials

LLVM Essentials

Suyog Sarda, Mayur Pandey
CMake Cookbook

CMake Cookbook

Radovan Bast, Roberto Di Remigio

Publisher Resources

ISBN: 9781782166924Supplemental Content