]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add -shift to go vet's flag whitelist
authorAdam Thomason <athomason@gmail.com>
Wed, 25 Oct 2017 21:36:23 +0000 (14:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 25 Oct 2017 22:01:58 +0000 (22:01 +0000)
CL 40112 intended to allow full flag processing in go vet, but missed
vet's -shift flag; this corrects the omission.

Fixes #22442

Change-Id: I47525018306bd8b9aa452fb378d0d45319f8cf11
Reviewed-on: https://go-review.googlesource.com/73553
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/vet/vetflag.go

index 8cd21bb72b75fcde0924f482e3439d437cb23dc1..36ee04ede77cf2add6e42905959d1f3cdaea6cc9 100644 (file)
@@ -44,6 +44,7 @@ var vetFlagDefn = []*cmdflag.Defn{
        {Name: "rangeloops", BoolVar: new(bool)},
        {Name: "shadow", BoolVar: new(bool)},
        {Name: "shadowstrict", BoolVar: new(bool)},
+       {Name: "shift", BoolVar: new(bool)},
        {Name: "source", BoolVar: new(bool)},
        {Name: "structtags", BoolVar: new(bool)},
        {Name: "tests", BoolVar: new(bool)},