mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When emitting a diagnostic that references a declaration that does not itself have a source location (e.g., because it was synthesized or deserialized), the diagnostics engine pretty-prints the declaration into a buffer so it can provide caret diagnostics pointing to that declaration. Start marking those buffers as "generated source buffers", so that we emit their contents into serialized diagnostics files. This will allow tools that make use of serialized diagnostics to also show caret information.
4.3 KiB
4.3 KiB