# 使用 Homebrew 安装 clangql

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

## 安装

```sh
sudo av install brew:clangql
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clangql
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:clangql
- **软件包管理器:** Homebrew
- **版本:** 0.23.0
- **来源摘要:** Run a SQL like language to perform queries on C/C++ files
- **主页:** <https://amrdeveloper.github.io/ClangQL/>
- **仓库:** <https://github.com/AmrDeveloper/ClangQL>
- **最后更新:** 2026-06-15T10:20:12-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clangql (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ClangQL is a Rust CLI that applies a SQL-like query language to C and C++ code through Clang AST data and the GitQL SDK.

### 项目历史

The repository and crates.io package both appeared in April 2024. The README presents ClangQL as a way to query C/C++ code instead of database files, with examples over functions and globals.

The project has had a rapid 0.x release series on crates.io and GitHub tags. Homebrew currently packages a tagged GitHub archive as clangql 0.23.0, while crates.io metadata lists 0.11.0 as the max crate version.

### 采用历史

The README documents both cargo install clangql and brew install clangql. crates.io reported 10,891 total downloads, and Homebrew reported 470 installs over the prior 365 days for the formula.

### 使用方式

Users pass source files, a script, or an inline query and can request rendered, JSON, or CSV output. The examples show SQL-like SELECT, COUNT, DISTINCT, LIKE, and matcher predicates over functions and globals.

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

ClangQL is interesting as a packaging artifact because it combines Rust distribution, libclang availability, and Homebrew bottles for a developer tool whose runtime behavior depends on the local LLVM/Clang stack.

### 时间线

- 2024: GitHub repository and crates.io crate created.
- 2024: Early 0.2.0 and 0.3.0 GitHub releases published.
- 2025: 0.8.0 through 0.11.0 releases published on GitHub/crates.io.
- 2026: Homebrew formula metadata lists 0.23.0 as stable from a GitHub tag.

### Related projects

- GitQL is the query-language SDK named in the README as ClangQL's foundation.
- LLVM/Clang and libclang are required runtime/build dependencies for parsing C and C++ code.

### 来源

- <https://github.com/AmrDeveloper/ClangQL#readme>
- <https://amrdeveloper.github.io/ClangQL>
- <https://api.github.com/repos/AmrDeveloper/ClangQL>
- <https://api.github.com/repos/AmrDeveloper/ClangQL/releases>
- <https://crates.io/api/v1/crates/clangql>
- <https://formulae.brew.sh/api/formula/clangql.json>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Combined YAML source

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


## 来源

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