Metadata-Version: 2.4
Name: llvm-demangle-fxti
Version: 11
Summary: Python wrapper around llvm::demangle, with vendored LLVM Demangle.
Home-page: https://github.com/MNayer/llvmdemangle
Author: MNayer
Author-email: marie.nayer@web.de
License: 0BSD AND Apache-2.0 WITH LLVM-exception
Keywords: demangling c++ cxx cpp llvm
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: click
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# LLVM-Demangle

Python wrapper around `llvm::demangle`, with vendored LLVM Demangle source.

No system LLVM installation required. Pre-built wheels available for Linux, macOS, and Windows.

## Install

Pick the LLVM version you need (15–20):

```bash
pip install llvm-demangle-fxti==18.0.0   # LLVM 18
pip install llvm-demangle-fxti==15.0.0   # LLVM 15
```

## Usage

```python
from llvmdemangle.demangle import llvm_demangle
llvm_demangle("_Z5isinfUa9enable_ifILb1EEd")
# => 'isinf(double) [enable_if:true]'
```

CLI:

```bash
demangle _Z5isinfUa9enable_ifILb1EEd
# => isinf(double) [enable_if:true]
```

## Build from source

```bash
# 1. Vendor LLVM Demangle source (downloads from GitHub releases)
python vendor_llvm.py --llvm-version 18

# 2. Build & install
LLVM_VERSION=18 pip install .
```

Supported LLVM versions: 15, 16, 17, 18, 19, 20.

## License

- Wrapper code: [0BSD](LICENSE.txt)
- LLVM Demangle source: [Apache 2.0 with LLVM Exception](LLVM_LICENSE.txt)
