1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:34:44 -07:00

cmd: gofmt

Change-Id: I243b6521cb91ba5312c0857ca81cf422a7c7b21a
Reviewed-on: https://go-review.googlesource.com/c/go/+/203881
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2019-10-28 08:53:53 -07:00
parent e071cc4873
commit 7131eb08ec
3 changed files with 35 additions and 35 deletions

View File

@ -171,37 +171,37 @@ var knownFormats = map[string]string{
"map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "", "map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "",
"map[*cmd/compile/internal/gc.Node][]*cmd/compile/internal/gc.Node %v": "", "map[*cmd/compile/internal/gc.Node][]*cmd/compile/internal/gc.Node %v": "",
"map[cmd/compile/internal/ssa.ID]uint32 %v": "", "map[cmd/compile/internal/ssa.ID]uint32 %v": "",
"map[int64]uint32 %v": "", "map[int64]uint32 %v": "",
"math/big.Accuracy %s": "", "math/big.Accuracy %s": "",
"reflect.Type %s": "", "reflect.Type %s": "",
"rune %#U": "", "rune %#U": "",
"rune %c": "", "rune %c": "",
"rune %q": "", "rune %q": "",
"string %-*s": "", "string %-*s": "",
"string %-16s": "", "string %-16s": "",
"string %-6s": "", "string %-6s": "",
"string %q": "", "string %q": "",
"string %s": "", "string %s": "",
"string %v": "", "string %v": "",
"time.Duration %d": "", "time.Duration %d": "",
"time.Duration %v": "", "time.Duration %v": "",
"uint %04x": "", "uint %04x": "",
"uint %5d": "", "uint %5d": "",
"uint %d": "", "uint %d": "",
"uint %x": "", "uint %x": "",
"uint16 %d": "", "uint16 %d": "",
"uint16 %x": "", "uint16 %x": "",
"uint32 %#U": "", "uint32 %#U": "",
"uint32 %#x": "", "uint32 %#x": "",
"uint32 %d": "", "uint32 %d": "",
"uint32 %v": "", "uint32 %v": "",
"uint32 %x": "", "uint32 %x": "",
"uint64 %08x": "", "uint64 %08x": "",
"uint64 %b": "", "uint64 %b": "",
"uint64 %d": "", "uint64 %d": "",
"uint64 %x": "", "uint64 %x": "",
"uint8 %d": "", "uint8 %d": "",
"uint8 %v": "", "uint8 %v": "",
"uint8 %x": "", "uint8 %x": "",
"uintptr %d": "", "uintptr %d": "",
} }

View File

@ -220,7 +220,7 @@ func elimIf(f *Func, loadAddr *sparseSet, dom *Block) bool {
// that has the same line number as the Pos for b itself, and // that has the same line number as the Pos for b itself, and
// puts a statement mark on it, and returns whether it succeeded // puts a statement mark on it, and returns whether it succeeded
// in this operation. // in this operation.
setBlockPos := func (b *Block) bool { setBlockPos := func(b *Block) bool {
pos := b.Pos pos := b.Pos
for _, v := range b.Values { for _, v := range b.Values {
if pos.SameFileAndLine(v.Pos) && !isPoorStatementOp(v.Op) { if pos.SameFileAndLine(v.Pos) && !isPoorStatementOp(v.Op) {

View File

@ -382,7 +382,7 @@ func makeLico(line, col uint) lico {
} }
func (x lico) Line() uint { return uint(x) >> lineShift } func (x lico) Line() uint { return uint(x) >> lineShift }
func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1 << lineShift-1) } func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1<<lineShift-1) }
func (x lico) Col() uint { return uint(x) >> colShift & colMax } func (x lico) Col() uint { return uint(x) >> colShift & colMax }
func (x lico) IsStmt() uint { func (x lico) IsStmt() uint {
if x == 0 { if x == 0 {