Tailored static tooling using Clang: Clazy
summary
A Clang plugin that adds Qt-specific static checks and auto-fix "fixit" patches to catch real misuses (unsafe childEvent casts, unnecessary QString UTF-8→UTF-16 allocations, bad pass-by-value vs const-ref) and integrate into CI. It uses the LLVM/Clang APIs, reads compile_commands.json, runs per-project or inside Qt Creator and KDevelop, groups checks by false-positive risk (levels 0–3), is ~22,000 lines on GitHub and actively applies fixes that work on real code.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:55Checking a project
- 3:25Fixing a project
- 10:02Getting help on checks
- 10:56Configuration file
- 11:44Code example
- 14:04Part of KDAB-supported tool suite
related talks
01h 01mMake Friends with the Clang Static Analysis Tools
51mCode Analysis ++
53mStandard C++ Toolset
01h 32mClosing Keynote: C++ Development Tools: Past, Present and Future
01h 01mHow to Refactor Millions of Line of Code Without Alienating your Colleagues
59mMechanical C++ Refactoring in the Present and in the Future
24mRefactoring Legacy Codebases with LibTooling
49mPets, Cattle and Automatic Clang Operations with C++ Code
