Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4469)

Issue 101410046: code review 101410046: gofmt/main: Added removal of empty declaration groups

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by Simon Whitehead
Modified:
9 years, 10 months ago
Reviewers:
gri
CC:
golang-codereviews, bradfitz, gri
Visibility:
Public.

Description

gofmt/main: Added removal of empty declaration groups. Fixes issue 7631.

Patch Set 1 #

Patch Set 2 : diff -r d628e9e34434 https://code.google.com/p/go #

Patch Set 3 : diff -r d628e9e34434 https://code.google.com/p/go #

Total comments: 1

Patch Set 4 : diff -r 75040398cb4e https://code.google.com/p/go #

Patch Set 5 : diff -r 75040398cb4e https://code.google.com/p/go #

Patch Set 6 : diff -r 75040398cb4e https://code.google.com/p/go #

Total comments: 11

Patch Set 7 : diff -r baa0b6b4b248 https://code.google.com/p/go #

Total comments: 7

Patch Set 8 : diff -r 1fcd603852b0 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -2 lines) Patch
M src/cmd/gofmt/gofmt_test.go View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/cmd/gofmt/simplify.go View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A src/cmd/gofmt/testdata/emptydecl.golden View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A src/cmd/gofmt/testdata/emptydecl.input View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 15
Simon Whitehead
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
9 years, 10 months ago (2014-06-23 12:56:54 UTC) #1
bradfitz
I think this should only be done if there are no adjacent or interior comments. ...
9 years, 10 months ago (2014-06-23 16:29:55 UTC) #2
gri
This is too simplistic a solution. - This will lead to odd formatting if there ...
9 years, 10 months ago (2014-06-23 17:20:09 UTC) #3
Simon Whitehead
On 2014/06/23 17:20:09, gri wrote: > This is too simplistic a solution. > > - ...
9 years, 10 months ago (2014-06-23 22:55:00 UTC) #4
Simon Whitehead
Hello golang-codereviews@googlegroups.com, bradfitz@golang.org, gri@golang.org (cc: golang-codereviews@googlegroups.com), Please take another look.
9 years, 10 months ago (2014-06-24 05:50:31 UTC) #5
Simon Whitehead
On 2014/06/24 05:50:31, SimonWhitehead wrote: > Hello mailto:golang-codereviews@googlegroups.com, mailto:bradfitz@golang.org, mailto:gri@golang.org > (cc: mailto:golang-codereviews@googlegroups.com), > > ...
9 years, 10 months ago (2014-06-24 06:18:56 UTC) #6
gri
This is much better (considering comments), but your code is way too complicated. Also, there's ...
9 years, 10 months ago (2014-06-25 18:47:39 UTC) #7
Simon Whitehead
Hi gri, Thank you so much for your feedback. I am quite embarrassed that I ...
9 years, 10 months ago (2014-06-26 22:31:50 UTC) #8
gri
Much better! Some more suggestions. In the worst-case, this algorithm is quadratic, because for each ...
9 years, 10 months ago (2014-06-26 23:32:42 UTC) #9
gri
PS: Please also change the CL description - empty Imports are also removed. Again, I'd ...
9 years, 10 months ago (2014-06-26 23:36:16 UTC) #10
Simon Whitehead
On 2014/06/26 23:36:16, gri wrote: > PS: Please also change the CL description - empty ...
9 years, 10 months ago (2014-06-29 22:20:58 UTC) #11
gri
LGTM Thanks for doing this. Please sign the CLA ( https://developers.google.com/open-source/cla/individual ) per the instructions ...
9 years, 10 months ago (2014-06-30 17:11:44 UTC) #12
Simon Whitehead
Hi Robert, All signed. It says it will be "processed shortly". Thank you so much ...
9 years, 10 months ago (2014-06-30 22:49:29 UTC) #13
bradfitz
I've processed the CLA. Robert can proceed with the review. On Mon, Jun 30, 2014 ...
9 years, 10 months ago (2014-07-01 16:26:38 UTC) #14
gri
9 years, 10 months ago (2014-07-01 16:32:06 UTC) #15
*** Submitted as https://code.google.com/p/go/source/detail?r=43e061c6564c ***

gofmt/main: Added removal of empty declaration groups.

Fixes issue 7631.

LGTM=gri
R=golang-codereviews, bradfitz, gri
CC=golang-codereviews
https://codereview.appspot.com/101410046

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b