[swift-evolution] [Pitch] Introducing #fileName debug identifier

Erica Sadun erica at ericasadun.com
Sat Mar 12 22:07:40 CST 2016

> On Mar 12, 2016, at 8:27 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
> It should be OK to have multiple files with the same name in the
> project.  For example, in the Swift compiler we have Decl.cpp in both
> Clang and Swift.  It is important to distinguish these in the
> assertion messages.
> Thus, I'd suggest to consider instead passing the project directory to
> the compiler, so that the compiler can provide a file name relative to
> the project root.

Agreed that name overlap is possible. I tend to use a lot of shared code
with "add reference" vs "add file" and relative-to-project-root actually 
ends up longer that way than just absolute path.

-- Erica

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160312/9721ad3f/attachment.html>

More information about the swift-evolution mailing list