1
0
mirror of https://github.com/golang/go synced 2024-09-30 22:58:34 -06:00
go/cmd/vet/testdata
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
..
asm1.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm2.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm3.s go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
asm.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
assign.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
atomic.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
buildtag_bad.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
buildtag.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
deadcode.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
method.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
print.go go.tools/cmd/vet: improvements to static checking of printf calls. 2013-07-15 18:37:49 -04:00
rangeloop.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
shadow.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00
structtag.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00
taglit.go go.tools/cmd/vet: use "go test" to test 2013-05-22 10:20:50 -07:00