# eliben/llvm-clang-samples

UNMAINTAINED: Examples of using the LLVM and Clang compilation libraries and tools

Repository: https://github.com/eliben/llvm-clang-samples
Canonical: https://ross.abutalabs.com/products/llvm-clang-samples
Language: C++
License: Unlicense
License Family: permissive
Archived: true
Last push: 2018-09-18T16:29:37+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4743, "days_push": 2906, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1182, forks 224 (observed 2026-08-28T04:03:54.397608+00:00)

## What it is
A collection of C++ sample programs demonstrating how to use LLVM and Clang as libraries, with branches tracking specific LLVM versions. The repository is explicitly unmaintained as of September 2018.

## Use cases
- learn how to use LLVM as a library
- examples of building compiler tools with Clang APIs
- sample code for parsing C++ with Clang
- getting started with LLVM C++ API
- using Clang as a compilation toolchain

## When to choose
- you are working with an older LLVM version (up to ~6.0) and want working example code
- you want to learn LLVM/Clang library fundamentals from readable samples
- you need a reference for out-of-source builds against LLVM libraries

## When to avoid
- you need examples for current LLVM versions, since the API changes constantly and this repo is unmaintained
- you want production-ready tooling rather than educational samples
- you are on Windows or macOS, as the build is Makefile-based for Linux

## Facets
- artifact type: learning-resource
- maturity: abandoned
- function: compiler, parser, developer-tools
- domain: compilers, developer-tools, programming-languages, tutorials
- platform: cpp
- tags: llvm, clang, code-examples, compiler-libraries, c-plus-plus-api, linux

## Member repositories
- eliben/llvm-clang-samples (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:54.397608+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:24:49.963049+00:00, confidence not recorded.
  - readme: https://github.com/eliben/llvm-clang-samples (fetched 2026-08-28T04:03:54.397608+00:00, sha 0eb26506bfb6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
