bootstrap

module
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: BSD-3-Clause

README

go-clang/bootstrap

PkgGoDev GitHub Workflow

Native Go bindings for Clang's C API.

Install/Update

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

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

We are using the issue tracker of the go-clang/gen repository. Please go through the open issues in the tracker first. If you cannot find your request just open up a new issue.

How is this binding generated?

The 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.

Directories

Path Synopsis
Package clang provides the Clang C API bindings for Go.
Package clang provides the Clang C API bindings for Go.
clang-c
Package clang_c holds clang binding C header files.
Package clang_c holds clang binding C header files.
cmd
go-clang-compdb
go-clang-compdb dumps the content of a clang compilation database
go-clang-compdb dumps the content of a clang compilation database
go-clang-dump
go-clang-dump shows how to dump the AST of a C/C++ file via the Cursor visitor API.
go-clang-dump shows how to dump the AST of a C/C++ file via the Cursor visitor API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL