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

Issue 174051: code review 174051: New flags for gofmt: (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 3 months ago by gri
Modified:
15 years, 3 months ago
Reviewers:
rsc
Visibility:
Public.

Description

New flags for gofmt: - oldparser parse old syntax (required semicolons) - oldprinter print old syntax (required semicolons) By default, these flags are enabled for now. Setting -oldparser=false has no effect until go/parser is changed to accept the new syntax. Enabled exp/parser in Makefile; update dependent exp/eval.

Patch Set 1 #

Patch Set 2 : code review 174051: New flags for gofmt: #

Patch Set 3 : code review 174051: New flags for gofmt: #

Total comments: 1

Patch Set 4 : code review 174051: New flags for gofmt: #

Patch Set 5 : code review 174051: New flags for gofmt: #

Patch Set 6 : code review 174051: New flags for gofmt: #

Patch Set 7 : code review 174051: New flags for gofmt: #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -11 lines) Patch
M src/cmd/gofmt/doc.go View 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/cmd/gofmt/gofmt.go View 1 2 3 4 6 chunks +23 lines, -10 lines 0 comments Download
M src/pkg/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/exp/eval/world.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6
gri
Hello rsc, I'd like you to review the following change.
15 years, 3 months ago (2009-12-10 23:39:13 UTC) #1
rsc
LGTM http://codereview.appspot.com/174051/diff/1002/1003 File src/cmd/gofmt/gofmt.go (right): http://codereview.appspot.com/174051/diff/1002/1003#newcode39 src/cmd/gofmt/gofmt.go:39: insertSemis = flag.Bool("insertsemis", false, "accept automatically inserted semicolons"); ...
15 years, 3 months ago (2009-12-10 23:53:33 UTC) #2
gri
PTAL On Thu, Dec 10, 2009 at 3:53 PM, <rsc@golang.org> wrote: > LGTM > > ...
15 years, 3 months ago (2009-12-11 00:12:24 UTC) #3
gri
I forgot to say that I think for now we should keep the insertstringplus flag ...
15 years, 3 months ago (2009-12-11 00:22:29 UTC) #4
rsc
LGTM check all.bash - not sure whether exp/parser should be added to the NOTEST list.
15 years, 3 months ago (2009-12-11 02:12:24 UTC) #5
gri
15 years, 3 months ago (2009-12-11 03:03:31 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=9fb9f434cbe6 ***

New flags for gofmt:
- oldparser            parse old syntax (required semicolons)
- oldprinter           print old syntax (required semicolons)

By default, these flags are enabled for now.
Setting -oldparser=false has no effect until go/parser is changed
to accept the new syntax.

Enabled exp/parser in Makefile; update dependent exp/eval.

R=rsc
http://codereview.appspot.com/174051
Sign in to reply to this message.

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