1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:04:46 -07:00
go/misc/cgo
Tobias Klauser a265c2c448 cmd/cgo, misc/cgo: only cache anonymous struct typedefs with parent name
CL 181857 broke the translation of certain C types using cmd/cgo -godefs
because it stores each typedef, array and qualified type with their
parent type name in the translation cache.

Fix this by only considering the parent type for typedefs of anonymous
structs which is the only case where types might become ambiguous.

Updates #31891
Fixes #37479
Fixes #37621

Change-Id: I301a749ec89585789cb0d213593bb8b7341beb88
Reviewed-on: https://go-review.googlesource.com/c/go/+/226341
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-03-30 18:44:17 +00:00
..
errors cmd/cgo: do not rewrite call if there are more args than parameters 2019-07-12 17:31:29 +00:00
fortran misc/cgo/fortran: avoid writing to $PWD 2019-11-20 22:37:23 +00:00
gmp
life misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
nocgo
stdio misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
test misc/cgo/test: fix sigaltstack test on AIX 2020-03-04 17:33:06 +00:00
testasan misc: log 'ok' from 'go run' tests on success 2019-11-25 16:43:27 +00:00
testcarchive misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
testcshared misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
testgodefs cmd/cgo, misc/cgo: only cache anonymous struct typedefs with parent name 2020-03-30 18:44:17 +00:00
testplugin misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
testsanitizers runtime: save/restore callee saved registers in arm64's sigtramp 2019-06-03 19:02:11 +00:00
testshared test: fix -test.v trace output for cgo/testshared 2020-03-20 14:28:59 +00:00
testsigfwd misc: log 'ok' from 'go run' tests on success 2019-11-25 16:43:27 +00:00
testso misc/cgo: correct GOOS in skip message 2020-02-24 08:30:59 +00:00
testsovar misc/cgo: correct GOOS in skip message 2020-02-24 08:30:59 +00:00
testtls