1
0
mirror of https://github.com/golang/go synced 2024-11-19 03:04:42 -07:00
go/cmd/vet
Austin Clements 348181cdd4 cmd/vet: tests for RET checking, SP checking, and leaf functions
Add tests for recently introduced asm error checks in vet.
This adds tests for the new warnings about functions that
don't store to their return slot before returning or that
store to SP-relative addresses in or beyond the argument
frame.  It also adds a test for leaf function handling on arm,
where the link register is not implicitly saved.

LGTM=rsc
R=rsc
CC=adg, golang-codereviews, r
https://golang.org/cl/166040044
2014-11-03 17:27:41 -05:00
..
testdata cmd/vet: tests for RET checking, SP checking, and leaf functions 2014-11-03 17:27:41 -05:00
whitelist go.tools/*: replace $GOROOT/src/pkg with $GOROOT/src where appropriate. 2014-09-08 13:24:38 -04:00
asmdecl.go cmd/vet: check return moves, support power64x, various fixes 2014-10-30 11:53:56 -04:00
assign.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
atomic.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
bool.go go.tools/cmd/vet: detect stupid boolean conditions 2014-07-02 10:39:57 -07:00
buildtag.go go.tools/cmd/vet: improve error message for build tag problems 2013-12-18 16:06:56 -08:00
composite.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
copylock.go go.tools/cmd/vet: warn about copying locks in range statements 2014-09-24 12:35:15 -07:00
deadcode.go go.tools/cmd/vet: prevent panic on goto without label 2014-06-20 11:08:45 -07:00
doc.go go.tools/cmd/vet: detect suspicious shifts 2014-08-29 11:17:01 -07:00
main.go cmd/vet: fix bug where incorrect exit code was returned 2014-10-02 10:33:35 -07:00
method.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
nilfunc.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
print.go go.tools/cmd/vet: don't panic on zero arg Log method calls. 2014-08-29 08:56:35 +10:00
rangeloop.go go.tools/cmd/vet: change message for range check 2014-08-24 17:26:18 -07:00
shadow.go cmd/vet: fix internal comments 2014-10-23 10:59:27 -07:00
shift.go go.tools/cmd/vet: detect suspicious shifts 2014-08-29 11:17:01 -07:00
structtag.go cmd/vet: check for use of json/xml struct tags with unexported fields 2014-06-13 18:44:31 -07:00
types.go cmd/vet: return nil from importType if it fails. 2014-10-15 16:56:09 +11:00
unsafeptr.go vet: Rearrange checkers to use a registration system. 2014-06-13 15:04:45 +10:00
vet_test.go go.tools/cmd/vet: disable TestVet on Plan 9 2014-02-20 21:43:24 +01:00