1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:04:45 -07:00
go/cmd
Alan Donovan 25f3e0fbde go.tools/cmd/vet: improvements to static checking of printf calls.
Details:
- added support for complex numbers as distinct from floats:
  %[efg] allows complex; %b does not.
- %p: only Signature, Map, Chan, Slice, unsafe.Pointer allowed.
- %s: allow []byte.
- allow a verb to match map[K]V and []T if it matches K/V/T,
  e.g. %d now matches []int.  i.e. matching is recursive.
- use go/types' constant folding.  literal() is gone.
- group cases together.

Added tests.

R=gri, r
CC=golang-dev
https://golang.org/cl/10895043
2013-07-15 18:37:49 -04:00
..
cover go.tools/cmd/cover: get cover counters on if conditions 2013-07-10 15:20:52 +10:00
vet go.tools/cmd/vet: improvements to static checking of printf calls. 2013-07-15 18:37:49 -04:00