]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/cgo: walk {FuncType,TypeSpec}.TypeParams fields
authorMatthew Dempsky <mdempsky@google.com>
Wed, 30 Nov 2022 20:31:30 +0000 (12:31 -0800)
committerGopher Robot <gobot@golang.org>
Wed, 30 Nov 2022 21:45:10 +0000 (21:45 +0000)
commit8c0256b398f3b23f24a1a3ac0cb00c2d8fb7f506
tree83630495d48131fcc6c0e5a8098463db997feb04
parent3b3ab616925fb820d5168727d92f1745020f9f9d
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>
misc/cgo/test/test.go
src/cmd/cgo/ast.go
src/cmd/cgo/ast_go1.go
src/cmd/cgo/ast_go118.go