go/src/cmd
Robert Griesemer 515fa58ac9 cmd/compile: track line directives w/ column information
Extend cmd/internal/src.PosBase to track column information,
and adjust the meaning of the PosBase position to mean the
position at which the PosBase's relative (line, col) position
starts (rather than indicating the position of the //line
directive). Because this semantic change is made in the
compiler's noder, it doesn't affect the logic of src.PosBase,
only its test setup (where PosBases are constructed with
corrected incomming positions). In short, src.PosBase now
matches syntax.PosBase with respect to the semantics of
src.PosBase.pos.

For #22662.

Change-Id: I5b1451cb88fff3f149920c2eec08b6167955ce27
Reviewed-on: https://go-review.googlesource.com/96535
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2018-02-26 18:32:03 +00:00
..
addr2line
api cmd/api: don’t rely on hardcoded go versions 2017-12-11 22:28:37 +00:00
asm cmd/compile: track line directives w/ column information 2018-02-26 18:32:03 +00:00
buildid cmd/buildid: fix rewrite algorithm 2018-01-04 16:56:51 +00:00
cgo cmd/cgo: delete double space in comment 2018-02-15 19:00:36 +00:00
compile cmd/compile: track line directives w/ column information 2018-02-26 18:32:03 +00:00
cover cmd/cover: do not report coverage for assembly functions 2017-11-16 01:41:51 +00:00
dist cmd/go: accept only limited compiler and linker flags in #cgo directives 2018-02-07 15:35:57 +00:00
doc cmd/doc: suppress the error message for *package.ident embedded in struct type 2017-12-20 19:05:19 +00:00
fix all: restore changes from faulty merge/revert 2018-02-12 20:13:59 +00:00
go all: remove "the" duplications 2018-02-18 17:54:20 +00:00
gofmt
internal cmd/compile: track line directives w/ column information 2018-02-26 18:32:03 +00:00
link all: fix misspellings 2018-02-20 21:02:58 +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 cmd/pack: fix export data truncation bug 2017-09-09 14:13:33 +00:00
pprof cmd/pprof: restore printing descriptive errors from net/http/pprof endpoints 2017-06-15 02:14:24 +00:00
test2json cmd/test2json: fix processing of --- BENCH: output 2018-01-05 22:27:17 +00:00
trace cmd/trace: add memory usage reporting 2018-02-21 21:23:08 +00:00
vendor cmd/vendor/github.com/google/pprof: refresh from upstream 2018-02-15 16:25:43 +00:00
vet cmd/vet: use type info to detect the atomic funcs 2018-02-23 18:31:55 +00:00