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

Issue 56360043: go/printer: stricter formatting in struct declarations (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 3 months ago by cookieo9
Modified:
10 years, 2 months ago
Reviewers:
Visibility:
Public.

Description

go/printer: stricter formatting in struct declarations If a sequence of fields don't all have the same kinds of elements (eg: Names, Types, Tags, Comments), then go fmt (and other uses of go/printer) can align different elements in different lines in the same column. This change fixes the issue by forcing each element type into it's own column unconditionally. Fixes issue 7199. NOTES: This CL currently exists as a proof of concept for the new format. Before this code can be merged, the tests need to be updated, or the code needs to be altered, as two existing tests in go/printer currently fail. Also gri is considering to fix the issue himself, so mail/review is pending.

Patch Set 1 #

Patch Set 2 : diff -r 0ba5ecac8038 http://code.google.com/p/go #

Patch Set 3 : diff -r 0ba5ecac8038 http://code.google.com/p/go #

Patch Set 4 : code review 56360043: go/printer: stricter formatting in struct declarations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+-1 lines, --1 lines) Patch
~rietveld~placeholder~ View 2 3 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 1
cookieo9
10 years, 2 months ago (2014-02-12 02:21:41 UTC) #1
Message was sent while issue was closed.
*** Abandoned ***
Sign in to reply to this message.

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