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

Issue 3987045: code review 3987045: cc: mode to generate go-code for types and variables. (Closed)

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

Description

cc: mode to generate go-code for types and variables.

Patch Set 1 #

Patch Set 2 : code review 3987045: cc: mode to generate go-code for types and variables. #

Total comments: 19

Patch Set 3 : code review 3987045: cc: mode to generate go-code for types and variables. #

Patch Set 4 : code review 3987045: cc: mode to generate go-code for types and variables. #

Patch Set 5 : code review 3987045: cc: mode to generate go-code for types and variables. #

Total comments: 25

Patch Set 6 : code review 3987045: cc: mode to generate go-code for types and variables. #

Patch Set 7 : code review 3987045: cc: mode to generate go-code for types and variables. #

Total comments: 1

Patch Set 8 : code review 3987045: cc: mode to generate go-code for types and variables. #

Patch Set 9 : code review 3987045: cc: mode to generate go-code for types and variables. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -7 lines) Patch
M src/cmd/cc/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/cc/cc.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/cmd/cc/dcl.c View 1 2 3 4 5 6 4 chunks +4 lines, -0 lines 0 comments Download
A src/cmd/cc/godefs.c View 1 2 3 4 5 6 7 1 chunk +388 lines, -0 lines 0 comments Download
M src/cmd/cc/lex.c View 1 2 3 4 5 6 9 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 10
rsc
Looks pretty reasonable. Please print the output formatted in gofmt-standard style. http://codereview.appspot.com/3987045/diff/1006/src/cmd/cc/dcl.c File src/cmd/cc/dcl.c (right): ...
14 years, 3 months ago (2011-01-24 19:36:31 UTC) #1
rsc
On Mon, Jan 24, 2011 at 14:36, <rsc@golang.org> wrote: > Looks pretty reasonable. > Please ...
14 years, 3 months ago (2011-01-24 19:37:41 UTC) #2
lvd
mostly done. made functions work too. see http://codereview.appspot.com/4047047 (in progress) on how its going to ...
14 years, 3 months ago (2011-01-25 11:52:57 UTC) #3
rsc
http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/dcl.c File src/cmd/cc/dcl.c (right): http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/dcl.c#newcode4 src/cmd/cc/dcl.c:4: // Copyright © 1994-1999 Lucent Technologies Inc. All rights ...
14 years, 3 months ago (2011-01-25 16:10:58 UTC) #4
lvd
all done http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/dcl.c File src/cmd/cc/dcl.c (right): http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/dcl.c#newcode4 src/cmd/cc/dcl.c:4: // Copyright © 1994-1999 Lucent Technologies Inc. ...
14 years, 3 months ago (2011-01-25 17:11:13 UTC) #5
rsc
http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c File src/cmd/cc/godefs.c (right): http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c#newcode89 src/cmd/cc/godefs.c:89: On 2011/01/25 17:11:13, lvd wrote: > On 2011/01/25 16:10:58, ...
14 years, 3 months ago (2011-01-25 17:52:58 UTC) #6
lvd
On Tue, Jan 25, 2011 at 18:52, <rsc@golang.org> wrote: > > http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c > File src/cmd/cc/godefs.c ...
14 years, 3 months ago (2011-01-25 17:56:46 UTC) #7
rsc
LGTM
14 years, 3 months ago (2011-01-25 17:58:33 UTC) #8
lvd
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 3 months ago (2011-01-25 18:00:13 UTC) #9
lvd
14 years, 3 months ago (2011-01-25 18:00:20 UTC) #10
*** Submitted as http://code.google.com/p/go/source/detail?r=a5b5d986e76a ***

cc: mode to generate go-code for types and variables.

R=rsc
CC=golang-dev
http://codereview.appspot.com/3987045

http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c
File src/cmd/cc/godefs.c (right):

http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c#newcode89
src/cmd/cc/godefs.c:89: 
On 2011/01/25 17:52:58, rsc wrote:
> On 2011/01/25 17:11:13, lvd wrote:
> > On 2011/01/25 16:10:58, rsc wrote:
> > > if(upper)
> > >     return s;
> > no i don't think so.
> 
> agree that that's not quite right.
> what i was trying to do was make
> sure that if you had a field named,
> say, type, it would not be renamed
> to _type and then uppercased to _type.
> in that case you want to skip the _ 
> processing and just format it as Type.
> so maybe the real fix is 
> 
> if(!upper) { 
>    ... current binary search
> }
> 

Done.

http://codereview.appspot.com/3987045/diff/15001/src/cmd/cc/godefs.c#newcode125
src/cmd/cc/godefs.c:125: 
On 2011/01/25 17:11:13, lvd wrote:
> On 2011/01/25 16:10:58, rsc wrote:
> > delete 2 blank lines of the 3
> 
> Done.

Done.
Sign in to reply to this message.

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