1
0
mirror of https://github.com/golang/go synced 2024-11-17 08:04:46 -07:00
go/misc/cgo
Joe Tsai b53088a634 Revert "go/printer: forbid empty line before first comment in block"
This reverts commit 08f19bbde1.

Reason for revert:
The changed transformation takes effect on a larger set
of code snippets than expected.

For example, this:
    func foo() {

        // Comment
        bar()

    }
becomes:
    func foo() {
        // Comment
        bar()

    }

This is an unintended consequence.

Change-Id: Ifca88d6267dab8a8170791f7205124712bf8ace8
Reviewed-on: https://go-review.googlesource.com/81335
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Joe Tsai <joetsai@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-01 01:12:26 +00:00
..
errors cmd/compile: record original and absolute file names for line directives 2017-11-13 16:47:41 +00:00
fortran *.bash: always use the same string equality operator 2017-03-14 21:46:31 +00:00
gmp
life test/run: use go tool compile + link instead of go run when possible 2017-10-31 13:21:05 +00:00
nocgo
stdio test/run: use go tool compile + link instead of go run when possible 2017-10-31 13:21:05 +00:00
test Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
testasan
testcarchive cmd/go: do not install dependencies during "go install" 2017-11-03 22:09:46 +00:00
testcshared cmd/go: do not install dependencies during "go install" 2017-11-03 22:09:46 +00:00
testgodefs
testplugin cmd/go: cache successful test results 2017-11-03 22:07:55 +00:00
testsanitizers misc/cgo/testsanitizers: convert test.bash to Go 2017-08-17 15:05:08 +00:00
testshared all: change github.com issue links to golang.org 2017-11-04 04:13:41 +00:00
testsigfwd
testso
testsovar
testtls