1
0
mirror of https://github.com/golang/go synced 2024-11-08 10:46:23 -07:00
go/src/cmd/vet/all
Aliaksandr Valialkin 78510bd17c cmd/vet: skip unreachable "if" and "case" code in shift check.
Such dead code is legitimate when dealing with arch-specific
types (int, uint, uintptr).

The CL removes the majority of 'too small for shift' false positives
from such a code.

Change-Id: I62c5635a1d3774ab2d71d3d7056f0589f214cbe5
Reviewed-on: https://go-review.googlesource.com/38065
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2017-04-19 20:03:37 +00:00
..
whitelist cmd/vet: skip unreachable "if" and "case" code in shift check. 2017-04-19 20:03:37 +00:00
main.go cmd/vet/all: print all unparseable lines 2017-04-13 14:05:34 +00:00