Uploaded image for project: 'Swift'
  1. Swift
  2. SR-6429

"input file '%0' was modified during the build" should have a valid source location

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      Description

      The Swift compiler checks to see if inputs were modified during the build, and produces an error if they were. This logic is in checkForOutOfDateInputs in Compilation.cpp. However, the diagnostic is emitted with an invalid location (SourceLoc()). In theory, it would make sense to emit it on the first line of the file that changed, as well as any similar diagnostics about a textual input file. However, we don't have a SourceLoc for that file, because we haven't loaded the file into the driver.

      We should do something about this.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jrose Jordan Rose
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: