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

Issue 86990044: code review 86990044: go/scanner: interpret //line directives sans filename s... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by adonovan
Modified:
10 years ago
Reviewers:
gobot, rsc, gri
CC:
gri, golang-codereviews
Visibility:
Public.

Description

go/scanner: interpret //line directives sans filename sensibly A //line directive without a filename now denotes the same filename as the previous line (as in C). Previously it denoted the file's directory (!). Fixes issue 7765

Patch Set 1 #

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

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

Total comments: 7

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -7 lines) Patch
M src/pkg/go/scanner/scanner.go View 1 2 3 1 chunk +11 lines, -5 lines 0 comments Download
M src/pkg/go/scanner/scanner_test.go View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 10
adonovan
Hello gri@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
10 years ago (2014-04-11 17:36:42 UTC) #1
gri
LGTM https://codereview.appspot.com/86990044/diff/40001/src/pkg/go/scanner/scanner.go File src/pkg/go/scanner/scanner.go (right): https://codereview.appspot.com/86990044/diff/40001/src/pkg/go/scanner/scanner.go#newcode152 src/pkg/go/scanner/scanner.go:152: // valid //line filename:line comment. leave away . ...
10 years ago (2014-04-14 19:38:02 UTC) #2
adonovan
*** Submitted as https://code.google.com/p/go/source/detail?r=b661b5f1787a *** go/scanner: interpret //line directives sans filename sensibly A //line directive ...
10 years ago (2014-04-16 18:51:35 UTC) #3
adonovan
All done. https://codereview.appspot.com/86990044/diff/40001/src/pkg/go/scanner/scanner.go File src/pkg/go/scanner/scanner.go (right): https://codereview.appspot.com/86990044/diff/40001/src/pkg/go/scanner/scanner.go#newcode152 src/pkg/go/scanner/scanner.go:152: // valid //line filename:line comment. On 2014/04/14 ...
10 years ago (2014-04-16 18:51:54 UTC) #4
rsc
Who is generating these buggy line directives?
10 years ago (2014-04-16 18:54:44 UTC) #5
adonovan
On 16 April 2014 14:54, <rsc@golang.org> wrote: > Who is generating these buggy line directives? ...
10 years ago (2014-04-16 18:59:16 UTC) #6
gobot
This CL appears to have broken the windows-amd64-race builder. See http://build.golang.org/log/8e5f1c394f40fef3c9e04ff4b5c27f175184a83b
10 years ago (2014-04-16 19:04:26 UTC) #7
rsc
When we defined the //line originally, an explicit goal of mine was to be simpler ...
10 years ago (2014-04-16 19:04:54 UTC) #8
adonovan
Ok; sorry I didn't cc: you for the review. Rather than roll back this change, ...
10 years ago (2014-04-16 19:13:03 UTC) #9
rsc
10 years ago (2014-04-16 19:15:44 UTC) #10
sgtm, thanks.
Sign in to reply to this message.

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