Native Go bindings for Clang's C API.
CGO_LDFLAGS="-L`llvm-config --libdir`" \ go get -u github.com/go-clang/v3.4/...
An example on how to use the AST visitor of the Clang API can be found in /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.
I found a bug/missing a feature in go-clang
How is this binding generated?
The go-clang/gen repository is used to automatically generate this binding.