|clazy connect by name||1.23||1||9248||77|
The above doesn’t make sense, as connect statements should reference at least 1 signal. However, it compiles just fine, since it’s valid C++. With clazy your compiler will get Qt semantics and complain about this mistake. Warns when a lambda inside a connect () captures local variables by reference.How do I use Clazy with Xclang?
You should now have the clazy command available to you, in <prefix>/bin/ . Compile your programs with it instead of clang++/g++. Note that this command is just a convenience wrapper which calls: clang++ -Xclang -load -Xclang ClazyPlugin.so -Xclang -add-plugin -Xclang clazyWhat is the Clazy-standalone binary?
The clazy-standalone binary allows you to run clazy over a compilation database JSON file, in the same way you would use clang-tidy or other clang tooling. This way you don't need to build your application, only the static analysis is performed.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.