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

Issue 6294076: code review 6294076: gofmt: handle comments correctly in rewrites (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by gri
Modified:
11 years, 10 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

gofmt: handle comments correctly in rewrites

Patch Set 1 #

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

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

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
M src/cmd/gofmt/gofmt_test.go View 1 2 chunks +1 line, -1 line 0 comments Download
M src/cmd/gofmt/rewrite.go View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
A src/cmd/gofmt/testdata/rewrite5.golden View 1 1 chunk +15 lines, -0 lines 0 comments Download
A src/cmd/gofmt/testdata/rewrite5.input View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 9
gri
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 10 months ago (2012-06-15 21:09:57 UTC) #1
rsc
Is this really correct? I understand the rationale, but in the example test data I ...
11 years, 10 months ago (2012-06-25 14:12:49 UTC) #2
gri
It is actually not very easy to create a test case that loses comments. Most ...
11 years, 10 months ago (2012-06-25 18:27:06 UTC) #3
rsc
The problem with deleting a comment is that you might not, on inspection, notice that ...
11 years, 10 months ago (2012-06-25 18:30:54 UTC) #4
gri
It's easy to restrict it -r. But again, it's difficult to create a case that ...
11 years, 10 months ago (2012-06-25 18:41:09 UTC) #5
rsc
Please leave the comments in for -s. The fact that it is so hard to ...
11 years, 10 months ago (2012-06-25 18:44:54 UTC) #6
gri
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 10 months ago (2012-06-25 20:54:29 UTC) #7
rsc
LGTM
11 years, 10 months ago (2012-06-25 20:56:15 UTC) #8
gri
11 years, 10 months ago (2012-06-25 20:58:35 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=d1a0993ee959 ***

gofmt: handle comments correctly in rewrites

R=rsc
CC=golang-dev
http://codereview.appspot.com/6294076
Sign in to reply to this message.

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