clang-v12
moduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
go-clang/clang-v12
Native Go bindings for Clang v12 C API.
Install/Update
CGO_LDFLAGS="-L`llvm-config --libdir`" \ go install github.com/go-clang/clang-v12/...Usage
An example on how to use the AST visitor of the Clang API can be found incmd/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 ingo-clang/gen's README.
I found a bug/missing a feature in go-clang
We are using the issue tracker of thego-clang/gen repository. Please go through theopen issues in the tracker first. If you cannot find your request just open up anew issue.
How is this binding generated?
Thego-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 theLICENSE file ingo-clang's license repository