clazy – Qt-oriented static code analyser

clazy is a static code analyser designed specifically for C++ software developed with Qt. It is based on the Clang framework and understands many Qt-specific programming idioms and APIs.

The analyser provides more than 50 checks covering areas such as unnecessary allocations, incorrect API usage, container handling, signal and slot problems, temporary objects and inefficient string operations. Checks are organised into levels, allowing developers to control how aggressive the analysis should be.

clazy is primarily implemented as a Clang compiler plugin, but it is not restricted to plugin-only use. The project also provides clazy-standalone, which can analyse projects using a JSON compilation database. A number of checks offer fix-its that can automatically perform appropriate source-code changes.

This is free and open source software.

Key Features

  • Static analysis tailored specifically to Qt C++ code.
  • Built on the Clang compiler framework.
  • Provides more than 50 Qt-specific checks.
  • Detects inefficient use of Qt APIs.
  • Finds unnecessary memory allocations and temporary objects.
  • Checks signal, slot, container and iterator usage.
  • Groups checks into configurable analysis levels.
  • Supports individual enabling and disabling of checks.
  • Provides fix-its for automatic source-code refactoring.
  • Includes a standalone analyser for JSON compilation databases.
  • Can be integrated directly into normal compiler workflows.

Website: github.com/KDE/clazy
Support:
Developer: KDE
License: GNU Lesser General Public License v2.0

clazy is written in C++. Learn C++ with our recommended free books and free tutorials.


Related Software

C and C++ Linters
OCLintStatic code analysis tool for improving quality and reducing defects
cpplintStatic code checker for C++
CodeCheckerPlatform for running static analysers and managing code defects
UncrustifySource code beautifer
InferStatic analyser that detects bugs in Java, C and C++ code
Include What You UseSource analysis tool for C and C++ projects built on Clang
CppcheckStatic analysis tool for C/C++ code
flawfinderScans C and C++ source code for potential security weaknesses
clazyQt-focused static analyser that catches common C++ mistakes
ClangFormatCode formatting tool
Clang-TidyClang-based C++ “linter” tool
SmatchStatic analysis tool for finding defects in C code
CoccinelleSemantic patching tool for analysing and transforming C code

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted