1
0
mirror of https://github.com/golang/go synced 2024-11-08 08:36:20 -07:00
go/src/cmd
Russ Cox 2a39d1e96a cmd/cover: add //line comment pointing to original file
Now that cover does not modify the formatting of the original file
or add any newline characters, we can make it print a //line comment
pointing back at the original, and compiler errors and panics will
report accurate line numbers.

Fixes #6329.
Fixes #15757.

Change-Id: I7b0e386112c69beafe69e0d47c5f9e9abc87c0f5
Reviewed-on: https://go-review.googlesource.com/77151
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-11-16 01:41:30 +00:00
..
addr2line
api all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
asm cmd/compile: record original and absolute file names for line directives 2017-11-13 16:47:41 +00:00
buildid cmd/buildid: add new tool factoring out code needed by go command 2017-10-11 18:16:02 +00:00
cgo cmd/cgo: permit passing string values directly between Go and C 2017-11-15 03:36:54 +00:00
compile cmd/compile: always nil check before interface call 2017-11-14 05:39:45 +00:00
cover cmd/cover: add //line comment pointing to original file 2017-11-16 01:41:30 +00:00
dist cmd/dist: adjust package doc 2017-11-15 21:26:16 +00:00
doc all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
fix all: revert "all: prefer strings.LastIndexByte over strings.LastIndex" 2017-10-05 23:19:42 +00:00
go cmd/cover: add //line comment pointing to original file 2017-11-16 01:41:30 +00:00
gofmt
internal cmd/compile: record original and absolute file names for line directives 2017-11-13 16:47:41 +00:00
link cmd/compile: do not write slices/strings > 2g 2017-11-09 18:50:22 +00:00
nm cmd/internal/goobj: accept int64 in readInt 2017-11-01 18:23:58 +00:00
objdump cmd/objdump: pass the correct execution mode to x86asm.Decode in disasm_x86 on 386 2017-11-10 20:11:20 +00:00
pack
pprof
test2json cmd/test2json: document time.Time JSON format 2017-11-10 18:17:38 +00:00
trace cmd/trace: fix a javascript bug in handling import error 2017-10-20 16:34:50 +00:00
vendor cmd/vendor/.../pprof: do not run test that opens web browser 2017-11-10 01:42:10 +00:00
vet cmd/vet: shorten diagnostic about suspicious struct tag spaces 2017-11-16 01:07:39 +00:00