In this chapter, we presented Clang tools built on top of the LibTooling infrastructure, which allows you to easily write tools that operate on the C/C++ source code level. We presented the following tools: Clang Tidy, which is the linter tool of Clang; Clang Modernizer, which automatically substitutes old C++ programming practices with newer ones; Clang Apply Replacements, which apply patches created by other refactoring tools; ClangFormat, which automatically indents and formats your C++ code; Modularize, which eases the task of using the yet-to-be standardized C++ modules framework; PPTrace, which documents the preprocessor activity; and Clang Query, which allows you to test AST matchers. Finally, we concluded this chapter by showing how to create your own tool.
This concludes this book, but this should be by no means an end to your studies. There is a lot of extra material about Clang and LLVM on the Internet, as either tutorials or formal documentation. Furthermore, Clang/LLVM...