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

Issue 5233054: code review 5233054: gofmt: fix a couple of crashes, disallow rewrites for i... (Closed)

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

Description

gofmt: fix a couple of crashes, disallow rewrites for incomplete programs The current implementation of formatting for incomplete programs cannot tolerate program rewrites; ignore -rewrite in that case with a warning message (temporary solution). Fix a couple of crashes that were introduced recently. Fixes issue 2348.

Patch Set 1 #

Patch Set 2 : diff -r b4311778f494 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b4311778f494 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r f183ae52d934 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -6 lines) Patch
M src/cmd/gofmt/gofmt.go View 1 4 chunks +14 lines, -5 lines 0 comments Download
M src/cmd/gofmt/rewrite.go View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 3
gri
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-10-11 01:07:19 UTC) #1
rsc
LGTM
13 years, 5 months ago (2011-10-11 15:07:13 UTC) #2
gri
13 years, 5 months ago (2011-10-12 04:49:58 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=2bfba477d53d ***

gofmt: fix a couple of crashes, disallow rewrites for incomplete programs

The current implementation of formatting for incomplete programs
cannot tolerate program rewrites; ignore -rewrite in that case
with a warning message (temporary solution).

Fix a couple of crashes that were introduced recently.

Fixes issue 2348.

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

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