dotnet/ClangSharp
Clang bindings for .NET written in C# observed · 2026-09-03
Health v2 · maintenance only
93/100
- Activity 100
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 54.5
- age_days: 4219
- days_rel: 49
- days_push: 0
- n_releases_24m: 11
Adoption not part of the score
1248 stars · 187 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
ClangSharp provides C# bindings for the Clang C/C++ compiler library, auto-generated from Clang's C headers using ClangSharpPInvokeGenerator. It exposes raw unsafe APIs plus safer type-safe abstractions, enabling .NET tooling built around C/C++ code parsing and analysis.
Use cases
- parse C/C++ source code from .NET
- generate P/Invoke bindings for native C libraries
- build C/C++ code analysis tools in C#
- access libClang APIs from managed code
- create refactoring or linting tools for C/C++ in .NET
When to choose
- you need to parse or analyze C/C++ code from a .NET application
- you want to auto-generate C# interop bindings from C headers
- you need type-safe wrappers around libClang
When to avoid
- you need Clang bindings in a language other than C#/.NET
- you only need to compile C/C++ code rather than parse it
- you want a fully managed parser without native libClang dependencies
Facets
library · maturity active
parser compiler sdk developer-tools parsers compilers developer-tools programming-languages dotnet cross-platform windows clang bindings pinvoke c-cpp-interop interop native-bindings code-generation linux macos
1 source
- readme: https://github.com/dotnet/ClangSharp · fetched 2026-09-03 · fae0150500cc
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dotnet/ClangSharp | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="dotnet/ClangSharp")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem