# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clazy>
- **版本:** 1.17.1
- **来源摘要:** Qt oriented static code analyzer
- **主页:** <https://www.kdab.com/>
- **上游文档:** <https://www.kdab.com/>
- **许可证:** LGPL-2.0-or-later
- **源码归档:** <https://invent.kde.org/sdk/clazy/-/archive/v1.17.1/clazy-v1.17.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 依赖

- coreutils
- llvm

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.17.1
- 本地数据: OK
- 上游仓库: https://www.kdab.com/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clazy
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [coreutils](https://pkg.so/zh-hans/brew/coreutils/) - Runtime dependency declared by Homebrew.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [clangql](https://pkg.so/zh-hans/brew/clangql/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools, static-analysis.
- [shellcheck](https://pkg.so/zh-hans/brew/shellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [semgrep](https://pkg.so/zh-hans/brew/semgrep/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [periphery](https://pkg.so/zh-hans/brew/periphery/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [cppcheck](https://pkg.so/zh-hans/brew/cppcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [pyright](https://pkg.so/zh-hans/brew/pyright/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [eslint](https://pkg.so/zh-hans/brew/eslint/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [ktlint](https://pkg.so/zh-hans/brew/ktlint/) - Shares pkgdb curated category or tags: cli, developer-tools, static-analysis.
- [include-what-you-use](https://pkg.so/zh-hans/brew/include-what-you-use/) - Local package facts share a topical domain. Shared terms: analysis, clang, cli, code, cpp.
- [esbmc](https://pkg.so/zh-hans/brew/esbmc/) - Local package facts share a topical domain. Shared terms: analysis, cli, cpp, developer, developer-tools.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
