Clazy Framework Employed To Help Port Qt 5 Code To Qt 6

Written by Michael Larabel in Qt on 1 March 2021 at 06:00 AM EST. 2 Comments
QT
The Qt Company is now offering some checks for the Clazy framework to help in porting Qt 5 code to Qt 6 compatibility.

Clazy is KDE's Qt-focused static code analyzer built atop LLVM's Clang. Clazy has been very useful for years in helping KDE/Qt developers discover bugs in their code and also help in some areas with automatic refactoring.

Clazy is now able to help in Qt 6 porting thanks to new checks that detect deprecated API usage, automatically replacing obsolete header paths to new header paths for Qt 6, correcting QHash signatures, forward declaration fixes, and finding QObject derived classes that don't have a Q_OBJECT macro. This is a combination of both checks and automatic fix-its to ideally speed-up the process of converting large code-bases to Qt 6 compatibility.

Qt developers interested in these Clazy checks can learn more about the new features via the Qt.io blog. Learn more about Clazy via its Git repository.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com 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 OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week