# clang-build-analyzer を Homebrew, Nix でインストール

clang-build-analyzer のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:clang-build-analyzer
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install clang-build-analyzer
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clangbuildanalyzer
```

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

## パッケージ情報

- **パッケージキー:** brew:clang-build-analyzer
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/clang-build-analyzer>
- **バージョン:** 1.6.0
- **ソース概要:** Tool to analyze compilation time
- **ホームページ:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **リポジトリ:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **ライセンス:** Unlicense AND Zlib AND MIT AND BSL-1.0 AND BSD-3-Clause AND Apache-2.0 AND BSD-2-Clause AND (Apache-2.0 WITH LLVM-exception)
- **ソースアーカイブ:** <https://github.com/aras-p/ClangBuildAnalyzer/archive/refs/tags/v1.6.0.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- ClangBuildAnalyzer (cli)
- ClangBuildAnalyzer (エイリアス)

## ビルド依存関係

- cmake

## macOS 提供ライブラリ

- llvm

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 1.6.0
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/aras-p/ClangBuildAnalyzer
- 検出された最新: v1.6.0 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

Clang Build Analyzer is a C and C++ build analysis tool that aggregates Clang -ftime-trace JSON files and reports where compilation time is spent. It is a package-nerd tool for people optimizing slow native builds rather than a general application framework.

### プロジェクトの歴史

The repository was created in August 2019 after Clang 9 introduced -ftime-trace. The README says the tool takes the single-file trace output generated by Clang and aggregates many compilation traces into summaries of slow files, templates, functions, code generation, and expensive headers.

### 採用の歴史

The supplied package-manager data lists Homebrew and Nix packaging. Release metadata shows an initial 1.0.0 release labeled 'Initial release' and later releases tracking newer Clang support, including Clang 19 support in 1.6.0.

### 使われ方

A typical workflow starts capture with ClangBuildAnalyzer --start, builds with Clang 9 or later using -ftime-trace, stops capture with --stop, and runs --analyze on the produced capture file. A ClangBuildAnalyzer.ini file in the working directory controls how many expensive files, templates, functions, and headers are reported.

### パッケージ好きにとっての重要性

It matters because it packages a practical workflow around a compiler diagnostic format. For large C++ codebases, it turns a pile of per-object JSON traces into actionable package-maintainer and build-engineer questions: which headers, templates, source files, or compiler phases are costing rebuild time?

### タイムライン

- 2019: Repository created after Clang 9 documented -ftime-trace.
- 2020: v1.0.0 initial release published on GitHub.
- 2020: v1.2.0 focused on optimizations for large builds.
- 2023: v1.5.0 improved expensive-header information.
- 2025: v1.6.0 added Clang 19 support and fixes.

### Related projects

- Related projects include Clang, LLVM, Clang's -ftime-trace support, Chrome trace viewers, speedscope.app, and native build systems such as Make, CMake, Xcode, and Visual Studio.

### ソース

- <https://github.com/aras-p/ClangBuildAnalyzer>
- <https://raw.githubusercontent.com/aras-p/ClangBuildAnalyzer/main/readme.md>
- <https://raw.githubusercontent.com/aras-p/ClangBuildAnalyzer/main/ClangBuildAnalyzer.ini>
- <https://api.github.com/repos/aras-p/ClangBuildAnalyzer/releases>
- <https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNotes.html>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals


## 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: ./ClangBuildAnalyzer.ini
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clang-build-analyzer
- **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

## 他のパッケージマネージャ記録

- Nix - clangbuildanalyzer: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/cl/clangbuildanalyzer/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [include-what-you-use](https://pkg.so/ja/brew/include-what-you-use/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [clang-uml](https://pkg.so/ja/brew/clang-uml/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [clazy](https://pkg.so/ja/brew/clazy/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [clangql](https://pkg.so/ja/brew/clangql/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [clang-include-graph](https://pkg.so/ja/brew/clang-include-graph/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [emacs-clang-complete-async](https://pkg.so/ja/brew/emacs-clang-complete-async/) - Shares pkgdb curated category or tags: clang, cli, cpp, developer-tools.
- [uftrace](https://pkg.so/ja/brew/uftrace/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools, profiling.
- [llvm](https://pkg.so/ja/brew/llvm/) - Shares pkgdb curated category or tags: clang, cli, developer-tools.
- [clang-format](https://pkg.so/ja/npm/clang-format/) - Local package facts share a topical domain. Shared terms: clang, cli, developer, developer-tools.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
