]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: use vet-specific export data to record detected printf wrappers
authorRuss Cox <rsc@golang.org>
Thu, 7 Jun 2018 14:55:28 +0000 (10:55 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 12 Jun 2018 01:51:04 +0000 (01:51 +0000)
commitc00603607511701ecc9f56fd82ac528ecf6b8fc6
tree7d015858fc6f2103ccbcd38dae6b142d4d9366a8
parent1352de3829df049f669d5a889832f4e06d4dab5b
cmd/vet: use vet-specific export data to record detected printf wrappers

This CL takes advantage of the ability to record vet-specific export data,
added in CL 108558, to save information about observed printf wrappers.
Then calls to those wrappers from other packages can be format-checked.
This found a few real mistakes using previously-unrecognized printf
wrappers in cmd/compile. It will no doubt find real mistakes in external code.

Change-Id: I9c29c92d89bbdc984571a174a96e6054585e9cd4
Reviewed-on: https://go-review.googlesource.com/108559
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/vet/print.go
src/cmd/vet/testdata/print.go