Improve your code with Clang Tooling
summary
Practical workflows for using Clang tooling to find and fix real C++ issues: run clang-tidy with -fix across a project via compile_commands.json to apply refactorings, run the Clang static analyzer for out-of-bounds and null-dereference bugs, and use Clang Sanitizers to detect leaks and data races at runtime. Also covers clang-format and Clazy for style and Qt-specific checks, how to generate a compilation database for non-CMake builds, shows live code fixes, and demonstrates these tools on Windows, Linux and macOS (with sanitizer limitations on Windows).
AI-written summary · about
chapters (9)
- 0:00Introduction
- 2:08Clang Tooling basics
- 8:14Static analysis tools
- 16:21Compiler diagnostics
- 22:29Translation unit workflow
- 36:27Compilation database
- 43:52Command line options
- 51:54Runtime analyzers
- 1:00:07Q&A and summary
related talks
52m“Tools from the C++ eco-system to save a leg”
29mUsing the Clang developer tools
01h 01mBetter Tools in Your Clang Toolbox
01h 01mCode Analysis++
01h 24mExtending clang-tidy in the Present and in the Future
01h 00mAdvanced Tools for Better Productivity
01h 03mHow to Build Your First C++ Automated Refactoring Tool
55mStandard C++ Toolset
