Better Tools in Your Clang Toolbox
summary
An open‑source Visual Studio extension Clang Power Tools brings clang‑tidy, clang‑format and LLVM compilation into MSVC workflows and a PowerShell CI script runs compilation and tidy in parallel with PCH support, extracting MSBuild settings automatically. Teams run selective modernization passes (range‑for, override, make_unique, use_auto) and write custom clang‑tidy checks using AST matchers and clang‑query. Adoption finds real bugs — missing virtual destructors, wrong enums, init order and dangling string_view — and exposes a buggy check (use‑using), but overall the tools scale and measurably modernize large codebases.
AI-written summary · about
chapters (8)
- 0:00Introduction and motivation
- 2:18Clang Power Tools overview
- 19:01Modernizing legacy codebases
- 23:19Massaging code for conformance
- 33:53Static analysis with clang-tidy
- 44:21Writing custom clang-tidy checks
- 50:17String handling and COM interop
- 54:43Closing remarks and Q&A
related talks
01h 05mImprove your code with Clang Tooling
55mStandard C++ Toolset
29mUsing the Clang developer tools
01h 00mAdvanced Tools for Better Productivity
01h 01mCode Analysis++
52m“Tools from the C++ eco-system to save a leg”
01h 24mExtending clang-tidy in the Present and in the Future
01h 01mTools from the C++ Ecosystem to save a leg
