# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 clazy

查看 clazy 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:clazy
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clazy
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add clazy
```

  证据: Alpine Linux edge package indexes: clazy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install clazy
```

  证据: Debian stable package indexes: clazy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install clazy
```

  证据: Fedora Rawhide package metadata: clazy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#clazy
```

  证据: nixpkgs package indexes: pkgs/by-name/cl/clazy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S clazy
```

  证据: Arch Linux sync databases: clazy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install clazy
```

  证据: openSUSE Tumbleweed package metadata: clazy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:clazy
- **软件包管理器:** Homebrew
- **版本:** 1.17.1
- **来源摘要:** Qt oriented static code analyzer
- **主页:** <https://www.kdab.com/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clazy (别名)
- clazy-standalone (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.17.1
## 项目历史与用法

Clazy is a Qt-oriented static analyzer built as a Clang compiler plugin and standalone tool. Its upstream README describes it as giving Clang Qt semantics and adding more than 50 Qt-related warnings, including checks for unnecessary allocations, API misuse, and automatic fix-its.

### 项目历史

The upstream changelog records a 0.0.1 first release on 2015-06-10 and a 1.0 release on 2016-09-12. Subsequent releases expanded platform support, check coverage, fix-its, and standalone compilation-database use.

Clazy was originally associated with KDAB-oriented Qt development workflows and is now hosted under KDE's SDK namespace. The current KDE project description calls it a Qt-oriented static code analyzer based on the Clang framework.

### 采用历史

The README documents Linux, Windows, MacPorts, and Homebrew build paths, and the batch package metadata lists Alpine, Homebrew, Debian, Fedora, Nix, Arch, Ubuntu, and openSUSE packages. That distribution spread reflects adoption by Qt/C++ developers who want analyzer checks packaged with their compiler toolchains.

Release history shows ongoing updates for modern LLVM and Qt versions, including LLVM 19-22 compatibility work, Qt 6 porting changes, and integration into clang-tidy in the 1.16 series.

### 使用方式

Clazy is used either as a compiler wrapper/plugin or via clazy-standalone against a JSON compilation database. The README shows CMake and qmake usage, check levels, environment-variable and compiler-argument selection of checks, fix-it support, and warning-noise controls.

### 为什么软件包爱好者会关心

Clazy is a classic packaging edge case: it sits at the intersection of Qt, Clang/LLVM ABI compatibility, compiler plugins, IDE integration, and distro compiler versions. Package maintainers care because a clazy build must match supported LLVM/Clang ranges while still being useful across Qt 5 and Qt 6 codebases.

### 时间线

- 2015: Version 0.0.1 first release.
- 2016: Version 1.0 release.
- 2017: Version 1.1 adds macOS and Windows support.
- 2017: Version 1.2 adds clazy-standalone for JSON compilation databases.
- 2021: Version 1.10 requires C++17.
- 2025: Version 1.16 adds clang-tidy integration.
- 2026: Version 1.17 continues Qt and LLVM compatibility work.

### Related projects

- Clang and LLVM provide the compiler framework and plugin surface.
- Qt is the target application framework whose idioms and APIs Clazy checks.
- clang-tidy is a related analyzer integration point introduced by Clazy 1.16.
- KDE hosts the active upstream repository under its SDK namespace.

### 来源

- <https://invent.kde.org/sdk/clazy/-/blob/master/README.md>
- <https://invent.kde.org/sdk/clazy/-/blob/master/Changelog>
- <https://invent.kde.org/api/v4/projects/sdk%2Fclazy>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - clazy - 1.14-1: normalized package name match | Debian stable package indexes: clazy from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Clang plugin for additional warnings | https://www.kdab.com/clazy-video/
- Debian apt - clazy-tests - 1.14-1: normalized package name match | Debian stable package indexes: clazy-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | test files for Clazy | https://www.kdab.com/clazy-video/
- Nix - clazy: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clazy/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - clazy - 1.11-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: clazy from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Clang plugin for additional warnings | https://www.kdab.com/clazy-video/
- Ubuntu apt - clazy-tests - 1.11-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: clazy-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | test files for Clazy | https://www.kdab.com/clazy-video/
- apk - clazy - 1.17.1-r1: normalized package name match | Alpine Linux edge package indexes: clazy from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Qt oriented code checker based on clang framework | https://invent.kde.org/sdk/clazy
- apk - clazy-doc - 1.17.1-r1: normalized package name match | Alpine Linux edge package indexes: clazy-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Qt oriented code checker based on clang framework (documentation) | https://invent.kde.org/sdk/clazy
- dnf - clazy - 1.17-3.fc45: normalized package name match | Fedora Rawhide package metadata: clazy from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Qt oriented code checker based on clang framework | https://invent.kde.org/sdk/clazy
- pacman - clazy - 1.17.1-1: normalized package name match | Arch Linux sync databases: clazy from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Qt oriented code checker based on clang framework | https://www.kdab.com/
- zypper - clazy - 1.17.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: clazy from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Qt oriented code checker based on the Clang framework | https://apps.kde.org/clazy/


## Combined YAML source

View the package source record on GitHub. [combined/clazy.yml](https://github.com/mxcl/pkgdb/blob/main/combined/clazy.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
