]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add column number to line directives
authorKir Kolyshkin <kolyshkin@gmail.com>
Mon, 30 Jul 2018 14:05:49 +0000 (17:05 +0300)
committerIan Lance Taylor <iant@golang.org>
Tue, 31 Jul 2018 20:20:47 +0000 (20:20 +0000)
commit6bea321ba27a4c0c9424c11c6424697deee7cce2
tree973e4a90273da99607068e12db438bb4f8cbc47b
parent344d0e0bf78ce479310496e8c767fc5e7410b527
cmd/cgo: add column number to line directives

Due to a new specification of //line: directives, missing
column info is now treated as column 0, aka "unknown column"
(see https://github.com/golang/go/issues/24183 for details).

As cgo does not add column number to generated //line: directive,
resulting files parsed do not have column info.

Fix by adding column of 1 to generated line directives.

Fixes #26692

Change-Id: Ie9263c0cf666b92d19c34240e745e8f32ffe7174
Reviewed-on: https://go-review.googlesource.com/126675
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/cgo/out.go