Metadata-Version: 2.4
Name: clangd-bin
Version: 18.1.8
Summary: clangd, the C and C++ language server from LLVM, packaged as Python wheels
Project-URL: Binaries, https://github.com/cpp-linter/clang-tools-static-binaries
Project-URL: Source, https://github.com/cpp-linter/clangd-wheel
Project-URL: Issues, https://github.com/cpp-linter/clangd-wheel/issues
Author: The LLVM project
Maintainer-email: Xianpeng Shen <xianpeng.shen@gmail.com>
License-Expression: Apache-2.0 WITH LLVM-exception
License-File: upstream/LICENSE.TXT
Keywords: c,c++,clang,clangd,llvm
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: C++
Classifier: Topic :: Software Development :: Quality Assurance
Description-Content-Type: text/markdown

# clangd-bin

[![PyPI](https://img.shields.io/pypi/v/clangd-bin?labelColor=454a63&color=007ec6)](https://pypi.org/project/clangd-bin/)
[![ci](https://img.shields.io/github/actions/workflow/status/cpp-linter/clangd-wheel/test.yml?branch=main&label=ci&labelColor=454a63)](https://github.com/cpp-linter/clangd-wheel/actions/workflows/test.yml)
[![part of cpp-linter](https://img.shields.io/badge/part%20of-cpp--linter-ffc20a?labelColor=454a63)](https://cpp-linter.github.io/)

`clangd`, the C and C++ language server from LLVM, as Python wheels on PyPI. One `pip install` gives you the command on
Linux, macOS and Windows, x86_64 and arm64, with no LLVM installation needed.

[Website](https://cpp-linter.github.io/) ·
[PyPI](https://pypi.org/project/clangd-bin/) ·
[Get started](https://cpp-linter.github.io/getting-started/#just-the-clang-tools) ·
[Discussions](https://github.com/orgs/cpp-linter/discussions)

## Quick start

```bash
pip install clangd-bin        # or: uv tool install clangd-bin
clangd --version
```

> [!TIP]
> In CI, `pipx run --spec clangd-bin clangd` needs no install step.
> [GitHub-hosted runners](https://github.com/actions/runner-images) ship with `pipx`.

## Usage

Editors and coding agents start `clangd` as a language server and talk to it over stdin and stdout.
Point yours at the installed command, for example in VS Code with the clangd extension:

```json
"clangd.path": "clangd"
```

clangd reads the compile flags from `compile_commands.json` (or `compile_flags.txt`) in your
project. To check that it can parse a file without an editor:

```bash
clangd --check=src/main.cpp
```

Run `clangd --help` for all options, and see the [clangd documentation](https://clangd.llvm.org/)
for editor setup and configuration.

Prebuilt wheels exist for LLVM 18 and later.

## Supported platforms

| Platform | Architecture | Wheel tag |
|----------|-------------|-----------|
| **Linux** (glibc 2.17+ and musl) | x86_64 | `manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64` |
| **Linux** (glibc 2.17+ and musl) | aarch64 | `manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64` |
| **macOS** 15+ | Intel (x86_64) | `macosx_15_0_x86_64` |
| **macOS** 11+ | Apple Silicon (arm64) | `macosx_11_0_arm64` |
| **Windows** | x86_64 | `win_amd64` |
| **Windows** | ARM64 | `win_arm64` |

The Linux binaries are fully static, so one wheel works on both glibc and musl distributions.
The macOS tags carry the minimum macOS version that the binaries declare.

The wheel version is the LLVM version, for example `23.1.6`. A packaging-only fix is released as
`23.1.6.1`.

## Where the binaries come from

The wheels contain the `clangd` binary from the
[clang-tools-static-binaries](https://github.com/cpp-linter/clang-tools-static-binaries) releases,
unchanged. Those are built from the official LLVM source releases, with build provenance
attestations. `sources.json` pins the SHA-512 of every file, and the build refuses any download
that does not match.

This is not an official LLVM project, so report problems with the tool itself
[upstream](https://github.com/llvm/llvm-project/issues).

## Contributing

[Open an issue](https://github.com/cpp-linter/clangd-wheel/issues) for packaging bugs and feature
requests. The [contributing guide](https://github.com/cpp-linter/.github/blob/main/CONTRIBUTING.md)
covers setup and code style, and the [wheel runbooks](https://github.com/cpp-linter/wheels/tree/main/runbooks)
how the wheels are built and released: a bot releases every new LLVM version on its own.

## License

The build scripts and workflows in this repository are released under the
[Apache License 2.0](https://github.com/cpp-linter/clangd-wheel/blob/main/LICENSE.md).
LLVM, and so the wheels, are under the
[Apache License 2.0 with LLVM Exceptions](https://llvm.org/LICENSE.txt); the wheels carry its
license file.
