Clang-Based Tool Makes It Easy To Show Inefficient Qt Coding Mistakes
Written by Michael Larabel in Qt on 19 April 2017 at 09:29 AM EDT. 25 Comments
QT --
Back in 2015 we wrote about the "Clazy" static analyzer for Clang as a way to uncover various coding shortcomings for KDE/Qt programs. Since then, Clazy has become much more capable.

KDE developer and KDAB employee Sérgio Martins has written a new blog post about 32 of the best practices that Clazy can now spot at compile-time to point out to developers. He confirmed in a message to Phoronix that most of the issues brought up by Clazy are in regards to performance-sensitive areas that could be improved by the developer analyzing their code with this tool.

This Clang-based static analyzer for Qt can warn about unnecessary memory allocations, poor API decisions, inefficient usage of some API calls, and more. Additional checks are still being added to Clazy.

Qt developers wishing to learn more can find out all of the details via this KDAB blog post. The code checker is available via the KDE Git repository.
Related News
About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week