# 使用 Homebrew, apt 安装 clang-format@11

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

## 安装

```sh
sudo av install brew:clang-format@11
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clang-format@11
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install clang-format
```

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

## 软件包事实

- **软件包键:** brew:clang-format@11
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clang-format@11>
- **版本:** 11.1.0
- **来源摘要:** Formatting tools for C, C++, Obj-C, Java, JavaScript, TypeScript
- **主页:** <https://clang.llvm.org/docs/ClangFormat.html>
- **仓库:** <https://github.com/llvm/llvm-project>
- **上游文档:** <https://releases.llvm.org/11.1.0/tools/clang/docs/ClangFormat.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/llvm-11.1.0.src.tar.xz>
- **最后更新:** 2026-05-19T13:03:28-04:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- clang-format-11 (cli)
- git-clang-format-11 (cli)
- clang-format-11 (别名)
- git-clang-format-11 (别名)

## 构建依赖

- cmake

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 11.1.0
- 管理器更新时间: 2026-05-19
- 本地数据: OK
- 上游仓库: https://github.com/llvm/llvm-project
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

clang-format@11 is the versioned Homebrew packaging of LLVM/Clang's formatter for the LLVM 11 era. It exists for projects that need the formatting behavior of that major release instead of whichever clang-format happens to be newest.

### 项目历史

The underlying clang-format tool predates LLVM 11, but the 11.1.0 documentation captures the feature set and command-line behavior for that release line. It documents clang-format as a LibFormat-based standalone tool with editor integrations and project-local .clang-format or _clang-format configuration.

### 采用历史

Versioned clang-format packages are useful because formatter output can change across LLVM releases. The supplied package-manager data lists Homebrew clang-format@11 as well as Debian and Ubuntu clang-format packaging, reflecting the need to install or pin specific major versions in build and CI environments.

### 使用方式

Users run clang-format-11 or git-clang-format-11 from the Homebrew package when a project requires LLVM 11 formatting. Configuration remains project-local via .clang-format or _clang-format, with -style=file and -dump-config documented in the LLVM 11 manual.

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

The package is significant as a version pin rather than a separate upstream. Formatting is often treated as a build contract, so package managers keep older clang-format majors available to avoid style churn in long-lived C, C++, Objective-C, Java, JavaScript, Protobuf, and C# repositories.

### 时间线

- 2013: clang-format documented in Clang 3.3.
- 2020: LLVM 11.0.0 release line published.
- 2021: LLVM 11.1.0 documentation preserved the clang-format 11 command-line and style behavior.
- 2026: Homebrew still distinguishes the versioned clang-format@11 formula from the unversioned clang-format package in the supplied input.

### Related projects

- Related projects include clang-format, git-clang-format, LLVM 11, Clang 11, LibFormat, and unversioned LLVM toolchain packages.

### 来源

- <https://releases.llvm.org/11.1.0/tools/clang/docs/ClangFormat.html>
- <https://releases.llvm.org/11.1.0/tools/clang/docs/ReleaseNotes.html>
- <https://github.com/llvm/llvm-project>


## 安全说明

没有找到 clang-format@11 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .clang-format, _clang-format
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clang-format@11
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - clang-format - 1:19.0-63: versioned package alias match | Debian stable package indexes: clang-format from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to format C/C++/Obj-C code
- Ubuntu apt - clang-format - 1:18.0-59~exp2: versioned package alias match | Ubuntu 24.04 LTS package indexes: clang-format from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to format C/C++/Obj-C code


## 相关链接

- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/zh-hans/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Web development packages](https://www.automicvault.com/zh-hans/pkg/web-dev-tools/) - Matched web development metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [clang-format](https://www.automicvault.com/zh-hans/pkg/brew/clang-format/) - Package name indicates the same formula family.
- [flang](https://www.automicvault.com/zh-hans/pkg/brew/flang/) - Shares the same upstream source repository.
- [lld](https://www.automicvault.com/zh-hans/pkg/brew/lld/) - Shares the same upstream source repository.
- [clang-format](https://www.automicvault.com/zh-hans/pkg/npm/clang-format/) - Local package facts share a topical domain. Shared terms: clang, format, git.
- [clang-build-analyzer](https://www.automicvault.com/zh-hans/pkg/brew/clang-build-analyzer/) - Package names and metadata indicate a similar tool family. Shared terms: clang.

## Combined YAML source

View the package source record on GitHub. [combined/clang-format@11.yml](https://github.com/automic-vault/db/blob/main/combined/clang-format@11.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
