go/refactor
Robert Findley b93a56f289 refactor/satisfy: fix visiting functions in the unsafe package
Unlike other calls of qualified functions, the type of certain functions
in the unsafe package (namely Slice, Add) is not constant, and cannot be
determined by the types.Func being called. Update Finder.expr to
pre-emptively handle calls to functions in the unsafe package, similarly
to how it handles other builtins.

Fixes golang/go#56227

Change-Id: I7af51c1ecacbdf35e39c8e7b8273ffe6f953427f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/443096
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-10-17 12:57:23 +00:00
..
eg all: gofmt 2022-04-12 17:53:17 +00:00
importgraph refactor/importgraph: set env from packagestest.Export and check errors from Build 2021-11-30 22:42:17 +00:00
rename all: gofmt 2022-04-12 17:53:17 +00:00
satisfy refactor/satisfy: fix visiting functions in the unsafe package 2022-10-17 12:57:23 +00:00
README go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00

README

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