swift
357c2989 - [utils] escape backslashes in diagnostics strings

Commit
1 day ago
[utils] escape backslashes in diagnostics strings DiagnosticVerifier lexes the contents of expected diagnostics the same way Swift parses string literals, to allow for escape codes. This makes for problems when backslashes are followed by something that makes for a valid escape. In particular, it reaches an llvm_unreachable if it encounters `\(`, which would create a string interpolation in a string literal.
References
Author
Committer
Parents
Loading