Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-clang/bootstrap
Bootstrap Go bindings for Clang's C API
https://github.com/go-clang/bootstrap
bootstrap clang go libclang
Last synced: 26 days ago
JSON representation
Bootstrap Go bindings for Clang's C API
- Host: GitHub
- URL: https://github.com/go-clang/bootstrap
- Owner: go-clang
- License: bsd-3-clause
- Created: 2015-11-27T12:06:40.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T12:16:27.000Z (over 1 year ago)
- Last Synced: 2024-06-19T04:02:04.937Z (7 months ago)
- Topics: bootstrap, clang, go, libclang
- Language: Go
- Homepage: https://pkg.go.dev/github.com/go-clang/bootstrap
- Size: 296 KB
- Stars: 20
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
# go-clang/bootstrap
[![PkgGoDev](https://pkg.go.dev/badge/go-clang/bootstrap)](https://pkg.go.dev/github.com/go-clang/bootstrap)
[![GitHub Workflow](https://img.shields.io/github/workflow/status/go-clang/bootstrap/Test/main?label=test&logo=github&style=flat-square)](https://github.com/go-clang/bootstrap/actions)Native Go bindings for Clang's C API.
## Install/Update
```bash
CGO_LDFLAGS="-L`llvm-config --libdir`" \
go get -u github.com/go-clang/bootstrap/...
```## 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](/LICENSE).