1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:34:41 -07:00
go/refactor
Suzy Mueller 1ab5277e83 refactor/rename: fail cleanly when attempting to rename cgo files
Previous implementation will overwrite files the import "C" with the
cgo preprocessing and renaming. Rename will now emit an error when
rename must edit files that import "C". Will also emit more useful
error when using -offset in a "C" importing file.

Fixes golang/go#17839

Change-Id: I072100b22197ec145b56d727feca58be7529e359
Reviewed-on: https://go-review.googlesource.com/45930
Reviewed-by: Alan Donovan <adonovan@google.com>
2017-06-23 01:23:57 +00:00
..
eg x/tools/refactor/eg: remove unused variable 2017-03-01 14:46:18 +00:00
importgraph refactor/importgraph: document that graphs are cyclic 2016-03-03 22:47:59 +00:00
rename refactor/rename: fail cleanly when attempting to rename cgo files 2017-06-23 01:23:57 +00:00
satisfy refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

golang.org/x/tools/refactor: libraries for refactoring tools.