mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03:34 +00:00
Add Source::FileContent to hold the file source content and per-line data. Have Source hold an optional pointer to a FileContent, and add a file_path field. This allows us to kill the `FreeInternalCompilerErrors()` filth as we're now able to construct Sources that hold a file path without file content. Change-Id: I03556795d7d4161c3d34cef32cb685c45ad04a3d Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/42026 Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>