In order to have all the Clazy checks dedicated to Qt 6 porting, you need to have a Qt Creator version 14.4.1 or up. After opening your project in Qt Creator you need to select the Clazy checks to be run during the analysis. This is done in the 'Options' or 'Preferences' window, under 'Analyzer'.What is clazyclazy in Clang?
Clazy, which helps Clang understand Qt semantics. It displays Qt related compiler warnings, ranging from unnecessary memory allocation to misuse of API and provides refactoring actions for fixing some of the issues. Note: The Clang static analyzer checks are a part of Clang-Tidy.What kind of compiler warnings do you get with Clazy?
You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring. Clazy has been tested on Linux, macOS and Windows/MSVC.How to create a clang-tidy file in Qt Creator?
Qt Creator creates the configuration for you based on the checks you select. To store the checks in file format, you can create a .clang-tidy file, as follows: Select Edit Checks as String and copy the contents of the field. Pipe the output of clang-tidy -dump-config into a file named .clang-tidy.