mirror of
https://github.com/golang/go.git
synced 2026-06-27 03:11:23 +00:00
cmd/compile: clarify relativity of a simple file name in a line directive
Per comment on (now abandoned) CL 780104. Change-Id: Ic9ccfdbb6d3755c2f0589fbe5bffab096a8c508e Reviewed-on: https://go-review.googlesource.com/c/go/+/780106 Reviewed-by: Robert Griesemer <gri@google.com> TryBot-Bypass: Robert Griesemer <gri@google.com> Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Michael Podtserkovskii <michaelpo@meta.com>
This commit is contained in:
parent
3a9c8e1d90
commit
1926d1d95d
1 changed files with 1 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ all other compiler directives are of the form
|
|||
//
|
||||
// Examples:
|
||||
//
|
||||
// //line foo.go:10 the filename is foo.go, and the line number is 10 for the next line
|
||||
// //line foo.go:10 the (relative) filename is foo.go, and the line number is 10 for the next line
|
||||
// //line ../foo.go:10 relative filenames are resolved against the directive's source directory
|
||||
// //line C:foo.go:10 colons are permitted in filenames, here the filename is C:foo.go, and the line is 10
|
||||
// //line a:100 :10 blanks are permitted in filenames, here the filename is " a:100 " (excluding quotes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue