• Robert Griesemer's avatar
    cmd/compile: provide updating mechanism for format test · 69010963
    Robert Griesemer authored
    The compiler's Format test verifies that the correct format
    strings for the given arguments are used in the compiler
    sources. The format strings are fairly specialized which is
    why we cannot use go vet; and the mapping is based on a
    hard-wired map.
    
    In the past, if that map got out of sync with the compiler
    sources, it was necessary to manually update the map. This
    change introduces an update mechanism which simply requires
    the test to be run with the -u flag.
    
    (Formerly, the -u flag was used to automatically rewrite
    format strings; now we use -r for that.)
    
    Change-Id: I9259566a6120a13cf34b143875975ada62697890
    Reviewed-on: https://go-review.googlesource.com/c/149460
    Run-TryBot: Robert Griesemer <gri@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarAustin Clements <austin@google.com>
    69010963
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...