]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile,go/build,internal/cpu: gofmt
authorElias Naur <elias.naur@gmail.com>
Sat, 26 May 2018 19:25:57 +0000 (21:25 +0200)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 26 May 2018 20:52:04 +0000 (20:52 +0000)
I don't know why these files were not formatted. Perhaps because
their changes came from Github PRs?

Change-Id: Ida8d7b9a36f0d1064caf74ca1911696a247a9bbe
Reviewed-on: https://go-review.googlesource.com/114824
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/fmt_test.go
src/go/build/build_test.go
src/internal/cpu/cpu.go

index 9d47b04b1c9041fdc903c0cc4acf28f2bcf0a376..531298a21641003755d14c5a825651a617d7ea68 100644 (file)
@@ -702,32 +702,32 @@ var knownFormats = map[string]string{
        "interface{} %v":                                  "",
        "map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "",
        "map[cmd/compile/internal/ssa.ID]uint32 %v":                            "",
-       "reflect.Type %s":                                                      "",
-       "rune %#U":                                                             "",
-       "rune %c":                                                              "",
-       "string %-*s":                                                          "",
-       "string %-16s":                                                         "",
-       "string %-6s":                                                          "",
-       "string %.*s":                                                          "",
-       "string %q":                                                            "",
-       "string %s":                                                            "",
-       "string %v":                                                            "",
-       "time.Duration %d":                                                     "",
-       "time.Duration %v":                                                     "",
-       "uint %04x":                                                            "",
-       "uint %5d":                                                             "",
-       "uint %d":                                                              "",
-       "uint %x":                                                              "",
-       "uint16 %d":                                                            "",
-       "uint16 %v":                                                            "",
-       "uint16 %x":                                                            "",
-       "uint32 %d":                                                            "",
-       "uint32 %v":                                                            "",
-       "uint32 %x":                                                            "",
-       "uint64 %08x":                                                          "",
-       "uint64 %d":                                                            "",
-       "uint64 %x":                                                            "",
-       "uint8 %d":                                                             "",
-       "uint8 %x":                                                             "",
-       "uintptr %d":                                                           "",
+       "reflect.Type %s":  "",
+       "rune %#U":         "",
+       "rune %c":          "",
+       "string %-*s":      "",
+       "string %-16s":     "",
+       "string %-6s":      "",
+       "string %.*s":      "",
+       "string %q":        "",
+       "string %s":        "",
+       "string %v":        "",
+       "time.Duration %d": "",
+       "time.Duration %v": "",
+       "uint %04x":        "",
+       "uint %5d":         "",
+       "uint %d":          "",
+       "uint %x":          "",
+       "uint16 %d":        "",
+       "uint16 %v":        "",
+       "uint16 %x":        "",
+       "uint32 %d":        "",
+       "uint32 %v":        "",
+       "uint32 %x":        "",
+       "uint64 %08x":      "",
+       "uint64 %d":        "",
+       "uint64 %x":        "",
+       "uint8 %d":         "",
+       "uint8 %x":         "",
+       "uintptr %d":       "",
 }
index 3d4c92dcecf896c4fc717506e4700293801b79cd..091443f646f2fdfc1fbce5dbf51136b16676413a 100644 (file)
@@ -177,7 +177,7 @@ func TestShouldBuild(t *testing.T) {
 }
 
 func TestGoodOSArchFile(t *testing.T) {
-       ctx := &Context{BuildTags: []string{"linux"}, GOOS:"darwin"}
+       ctx := &Context{BuildTags: []string{"linux"}, GOOS: "darwin"}
        m := map[string]bool{}
        want := map[string]bool{"linux": true}
        if !ctx.goodOSArchFile("hello_linux.go", m) {
index 6f7d89f1c2c997a95449c20f46fbb3cc4bf34e48..b1a8d9bf63b2a5def8d5ec43d682603e3f808de8 100644 (file)
@@ -98,8 +98,8 @@ type arm64 struct {
 var S390X s390x
 
 type s390x struct {
-       _     [CacheLineSize]byte
-       HasVX bool // vector facility. Note: the runtime sets this when it processes auxv records.
+       _        [CacheLineSize]byte
+       HasVX    bool // vector facility. Note: the runtime sets this when it processes auxv records.
        HasKM    bool // cipher message (KM)
        HasKMA   bool // cipher message assist (KMA)
        HasKMC   bool // cipher message with chaining (KMC)