Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-clang/clang-v13
Go bindings for Clang's C API v13
https://github.com/go-clang/clang-v13
clang go libclang
Last synced: 27 days ago
JSON representation
Go bindings for Clang's C API v13
- Host: GitHub
- URL: https://github.com/go-clang/clang-v13
- Owner: go-clang
- License: bsd-3-clause
- Created: 2021-11-20T07:15:17.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-28T17:59:39.000Z (almost 3 years ago)
- Last Synced: 2024-03-14T23:51:28.364Z (10 months ago)
- Topics: clang, go, libclang
- Language: Go
- Homepage: https://pkg.go.dev/github.com/go-clang/clang-v13/clang
- Size: 181 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-clang/clang-v13
[![PkgGoDev](https://pkg.go.dev/badge/github.com/go-clang/clang-v13)](https://pkg.go.dev/github.com/go-clang/clang-v13)
[![GitHub Workflow](https://img.shields.io/github/workflow/status/go-clang/clang-v13/Test/main?label=test&logo=github&style=flat-square)](https://github.com/go-clang/clang-v13/actions)Native Go bindings for Clang v13 C API.
Generated from [llvmorg-13.0.1](https://github.com/llvm/llvm-project/releases/tag/llvmorg-13.0.1).
## Install/Update
```console
CGO_LDFLAGS="-L$(llvm-config --libdir)" \
go install github.com/go-clang/clang-v13/clang@latest
```## Usage
An example on how to use the AST visitor of the Clang API can be found in [cmd/go-clang-dump/main.go](cmd/go-clang-dump/main.go)
## I need bindings for a different Clang version
The Go bindings are placed in their own repositories to provide the correct bindings for the corresponding Clang version. A list of supported versions can be found in [go-clang/gen's README](https://github.com/go-clang/gen#where-are-the-bindings).
## I found a bug/missing a feature in go-clang
We are using the issue tracker of the `go-clang/gen` repository. Please go through the [open issues](https://github.com/go-clang/gen/issues) in the tracker first. If you cannot find your request just open up a [new issue](https://github.com/go-clang/gen/issues/new).
## How is this binding generated?
The [go-clang/gen](https://github.com/go-clang/gen) repository is used to automatically generate this binding.
# License
This project, like all go-clang projects, is licensed under a BSD-3 license which can be found in the [LICENSE file](https://github.com/go-clang/license/blob/master/LICENSE) in [go-clang's license repository](https://github.com/go-clang/license)