# clang-build-analyzer mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für clang-build-analyzer in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

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

  Evidenz: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Paketfakten

- **Paketschlüssel:** brew:clang-build-analyzer
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/clang-build-analyzer>
- **Version:** 1.6.0
- **Quellzusammenfassung:** Tool to analyze compilation time
- **Homepage:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **Repository:** <https://github.com/aras-p/ClangBuildAnalyzer>
- **Lizenz:** 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)
- **Quellarchiv:** <https://github.com/aras-p/ClangBuildAnalyzer/archive/refs/tags/v1.6.0.tar.gz>
- **Generiert:** 2026-08-04T22:13:35+00:00

## Executables

- ClangBuildAnalyzer (cli)
- ClangBuildAnalyzer (Alias)

## Build-Abhängigkeiten

- cmake

## Von macOS bereitgestellte Bibliotheken

- llvm

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Version und Aktualität

- Seite generiert: 2026-08-04
- Manager-Version: 1.6.0
- lokale Daten: OK
- Upstream-Repository: https://github.com/aras-p/ClangBuildAnalyzer
- neueste erkannte Version: v1.6.0 (aktuell)
- Info: No package-manager update timestamp was available.
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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?

### Zeitleiste

- 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.

### Quellen

- <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>


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- 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
## Details aus der Quelldatenbank

- **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

## Andere Paketmanager-Einträge

- 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


## Verwandte Links

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


## Quellen

- 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
