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:
Robert Griesemer 2026-05-20 11:51:35 -07:00 committed by Robert Griesemer
parent 3a9c8e1d90
commit 1926d1d95d

View file

@ -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)