go/misc
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
..
android
arm
cgo cmd/cgo, misc/cgo: only cache anonymous struct typedefs with parent name 2020-03-30 18:44:17 +00:00
chrome/gophertool misc/chrome/gophertool: replace deprecated tabs.getSelected method 2019-11-18 18:14:37 +00:00
ios misc/ios: bump -mios-version-min 2019-11-05 14:44:56 +00:00
linkcheck
reboot misc: remove use of relative directories in overlayDir functions 2019-11-25 16:26:15 +00:00
swig
trace cmd/trace: update to use WebComponents V0 polyfill 2020-02-20 19:12:11 +00:00
wasm syscall/js: make wasm_exec.js compatible with Webpack 2020-03-24 10:33:13 +00:00
editors
go.mod