diff options
| author | Patrick Pokatilo <mail@shyxormz.net> | 2021-11-29 07:22:15 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-05-08 17:18:37 +0000 |
| commit | 0ad74fd1dcb278b7d9348e9c8a46152bdab4c376 (patch) | |
| tree | 626580554629f27440121d5e657f44176482ec0c /src/database/sql | |
| parent | 831f1168289e65a7ef49942ad8d16cf14af2ef43 (diff) | |
| download | go-0ad74fd1dcb278b7d9348e9c8a46152bdab4c376.tar.xz | |
cmd/cgo: add line info for return statements
When calling a C function, line information will be
incorrect if the function call's closing parenthesis
is not on the same line as the last argument. We add
a comment with the line info for the return statement
to guide debuggers to the correct line.
Fixes #49839.
Change-Id: I8bc2ce35fec9cbcafbbe8536d5a79dc487eb24bb
GitHub-Last-Rev: 8b28646d2e25b19272ded7a3d54b9374108a54e2
GitHub-Pull-Request: golang/go#49840
Reviewed-on: https://go-review.googlesource.com/c/go/+/367454
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions
