1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:44:44 -07:00
go/cmd/vet
Robert Griesemer f50f6c858a go.tools/go/types: nil is not a constant + misc. cleanups
- removed support for nil constants from go/exact
- instead define a singleton Nil Object (the nil _value_)
- in assignments, follow more closely spec wording
  (pending spec CL 14415043)
- removed use of goto in checker.unary
- cleanup around handling of isRepresentable for
  constants, with better error messages
- fix missing checks in checker.convertUntyped
- added isTyped (== !isUntyped) and isInterface predicates
- fixed hasNil predicate: unsafe.Pointer also has nil
- adjusted ssa per adonovan
- implememted types.Implements (wrapper arounfd types.MissingMethod)
- use types.Implements in vet (and fix a bug)

R=adonovan, r
CC=golang-dev
https://golang.org/cl/14438052
2013-10-09 14:17:25 -07:00
..
testdata go.tools/go/types: nil is not a constant + misc. cleanups 2013-10-09 14:17:25 -07:00
whitelist cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
asmdecl.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
assign.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
atomic.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
buildtag.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
composite.go cmd/vet: move whitelist to its own package 2013-08-20 15:39:49 -07:00
deadcode.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
doc.go go.tools/cmd/vet: the composite test is about keys, not tags 2013-08-03 12:19:59 +10:00
main.go go.tools/cmd/vet: check for recursive stringers 2013-08-21 11:07:53 +10:00
method.go go.tools/cmd/vet: Update canonical method check for new xml.Marshaler/Unmarshaler interfaces 2013-10-07 11:10:36 -07:00
nilfunc.go go.tools/cmd/vet: detect useless function comparisons 2013-08-20 16:11:01 +10:00
print.go go.tools/cmd/vet: update for fmt handling %b for complex numbers 2013-09-16 08:18:27 +10:00
rangeloop.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -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: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
types.go go.tools/go/types: nil is not a constant + misc. cleanups 2013-10-09 14:17:25 -07:00
vet_test.go go.tools/cmd/vet: add check for shadowed variables 2013-06-21 11:27:53 -07:00