$ cat test.go
var x = (foo /* foo */ + bar /* bar */)
$ gofmt -r 'foo->bla' test.go
var x = (bla + bar /* bar */)
Instead it should print:
var x = (bla /* foo */ + bar /* bar */)
The text was updated successfully, but these errors were encountered:
The majority of this CL was prepared via scripted invocations of
`gofmt -w -r "$SYM -> obj.$SYM" cmd/internal/ld/*.go` and `gofmt -w -r
"ld.$SYM -> obj.$SYM" cmd/?l/*.go`.
Because of issue #7417, that was followed by repeatedly running an AWK
script to identify lines that differed other than whitespace changes
or "ld." or "obj." prefixes and manually restoring comments.
Finally, the redundant constants from cmd/internal/ld/link.go were
removed, and "goimports -w" was used to cleanup import lines.
Passes rsc.io/toolstash/buildall, even when modified to also build cmd.
Reviewed-by: Michael Hudson-Doyle <firstname.lastname@example.org>
Reviewed-by: Ian Lance Taylor <email@example.com>