Clazy - better C++ tooling for Qt best practices
published at 03.09.2020 16:38 by Frances Tait
Save to Instapaper Pocket
Clazy is a Clang plugin which extends the compiler with over 50 warnings related to Qt best practices ranging from unneeded memory allocations to API misuse. It’s an opensource project spawned by KDAB’s R&D efforts for better C++ tooling.
At KDAB, we have a pretty cool Continuous Integration infrastructure to take care of our customers’ code: the CI team is constantly writing new extensions to support all kinds of linters, static checkers, sanitizers and code coverage tools. So when senior software engineer, Sérgio Martins, asked them if a graphical way to view Clazy’s results would be useful, they jumped on it immediately and agreed it made sense to also run it on Qt.
The usage is self-explanatory, you can click on different Qt modules, then for each module you can expand a warning type and see all source locations where it happens. You can also filter by level: bigger levels can have false-positives, or simply be more noisy or less important.
More details at KDAB's clazy web page
Download Clazy from our GIT page
Thanks to KDAB for providing this guest post to the Meeting C++ blog!
Join the Meeting C++ patreon community!
This and other posts on Meeting C++ are enabled by my supporters on patreon!