tinygo/cgo
Ayke van Laethem cceb655874 cgo: run CGo parser for all CGo fragments in a file
Previously, libclang was run on each fragment (import "C") separately.
However, in regular Go it's possible for later fragments to refer to
types in earlier fragments so they must have been parsed as one.

This commit changes the behavior to run only one C parser invocation for
each Go file.
2021-11-04 22:26:33 +01:00
..
testdata cgo: run CGo parser for all CGo fragments in a file 2021-11-04 22:26:33 +01:00
cgo.go cgo: run CGo parser for all CGo fragments in a file 2021-11-04 22:26:33 +01:00
cgo_test.go builder, cgo: support function definitions in CGo headers 2021-09-28 18:44:11 +02:00
const.go cgo: implement prefix parsing 2021-05-21 17:54:13 +02:00
const_test.go cgo: implement prefix parsing 2021-05-21 17:54:13 +02:00
libclang.go cgo: run CGo parser for all CGo fragments in a file 2021-11-04 22:26:33 +01:00
libclang_config.go all: drop support for LLVM 10 2021-10-31 10:44:17 +01:00
libclang_stubs.c all: drop support for LLVM 10 2021-10-31 10:44:17 +01:00
security.go cgo: implement #cgo CFLAGS 2019-11-25 09:32:03 +01:00
security_test.go cgo: implement #cgo CFLAGS 2019-11-25 09:32:03 +01:00
sync.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00