Summary
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 ...
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.
Read now
Unlock full access