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

Issue 7305075: code review 7305075: vet: improve flag handling (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by r
Modified:
12 years, 4 months ago
Reviewers:
EduRam
CC:
bradfitz
Visibility:
Public.

Description

vet: improve flag handling Simplify the internal logic for flags controlling what to vet, by introducing a map of flags that gathers them all together. This change should simplify the process of adding further flags. Add a test for untagged struct literals. Delete a redundant test that was also in the wrong file. Clean up some ERROR patterns that weren't working. "make test" passes again.

Patch Set 1 #

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

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -26 lines) Patch
M src/cmd/vet/atomic.go View 1 chunk +1 line, -1 line 1 comment Download
M src/cmd/vet/buildtag.go View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/vet/main.go View 1 2 2 chunks +22 lines, -14 lines 0 comments Download
M src/cmd/vet/method.go View 2 chunks +3 lines, -3 lines 0 comments Download
M src/cmd/vet/print.go View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/vet/rangeloop.go View 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/vet/structtag.go View 2 chunks +2 lines, -2 lines 0 comments Download
M src/cmd/vet/taglit.go View 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 5
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 4 months ago (2013-02-11 21:23:34 UTC) #1
bradfitz
LGTM On Mon, Feb 11, 2013 at 1:23 PM, <r@golang.org> wrote: > Reviewers: golang-dev_googlegroups.com, > ...
12 years, 4 months ago (2013-02-11 21:31:06 UTC) #2
r
*** Submitted as https://code.google.com/p/go/source/detail?r=7d3de949de92 *** vet: improve flag handling Simplify the internal logic for flags ...
12 years, 4 months ago (2013-02-11 21:33:17 UTC) #3
EduRam
https://codereview.appspot.com/7305075/diff/6001/src/cmd/vet/atomic.go File src/cmd/vet/atomic.go (left): https://codereview.appspot.com/7305075/diff/6001/src/cmd/vet/atomic.go#oldcode13 src/cmd/vet/atomic.go:13: // checkAtomicAssignment walks the assignment statement checking for comomon ...
12 years, 4 months ago (2013-02-11 23:09:32 UTC) #4
r
12 years, 4 months ago (2013-02-12 00:10:44 UTC) #5
On Mon, Feb 11, 2013 at 3:09 PM,  <eduardo.ramalho@gmail.com> wrote:
>
> https://codereview.appspot.com/7305075/diff/6001/src/cmd/vet/atomic.go
> File src/cmd/vet/atomic.go (left):
>
>
https://codereview.appspot.com/7305075/diff/6001/src/cmd/vet/atomic.go#oldcode13
> src/cmd/vet/atomic.go:13: // checkAtomicAssignment walks the assignment
> statement checking for comomon
> Is "comomon" misspelled ?

No, but "common" is :)

We'll get it next round.

-rob
Sign in to reply to this message.

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