go/src/cmd/cgo
Matthew Dempsky 8c0256b398 cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields
This CL updates the cgo tool to walk the TypeParams fields for
function types and type declarations, so that C.xxx identifiers can
appear within type parameter lists.

Fixes #52542.

Change-Id: Id02a88d529d50fe59b0a834f415c2575204ffd1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/453977
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-11-30 21:45:10 +00:00
..
ast.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
ast_go1.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
ast_go118.go cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields 2022-11-30 21:45:10 +00:00
doc.go cmd/go: automatically disable cgo on systems with no C compiler 2022-11-16 21:42:58 +00:00
gcc.go all: add missing periods in comments 2022-11-18 17:59:44 +00:00
godefs.go cmd/cgo: use strings.Builder 2022-09-08 14:33:35 +00:00
main.go cmd/go, cmd/cgo: support older versions of gccgo that lack cgo.Incomplete 2022-10-29 00:40:18 +00:00
out.go cmd/go, cmd/cgo: support older versions of gccgo that lack cgo.Incomplete 2022-10-29 00:40:18 +00:00
util.go cmd/cgo: delete unused code 2022-09-29 09:05:04 +00:00