1
0
mirror of https://github.com/golang/go synced 2024-11-18 09:34:53 -07:00
go/refactor/rename
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
..
check.go refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00
mvpkg_test.go x/tools/refactor/rename: fix nil pointer dereference. 2017-02-24 20:12:46 +00:00
mvpkg.go refactor/rename: fix two bugs related to MS Windows' path separator 2016-07-15 14:58:04 +00:00
rename_test.go refactor/rename: perform renaming in doc comments 2016-11-29 19:07:26 +00:00
rename.go refactor/rename: fail cleanly when attempting to rename cgo files 2017-06-23 01:23:57 +00:00
spec.go refactor/rename: fail cleanly when attempting to rename cgo files 2017-06-23 01:23:57 +00:00
util.go refactor/...: remove go1.8-tagged files 2016-11-04 21:29:48 +00:00