Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix <rdar://14296004> [QoI] Poor diagnostic/recovery when two operato…
…rs (e.g., == and -) are adjacted without spaces. This is a frequently reported and surprising issue where lack of whitespace leads to rejecting common code like "X*-4". Fix this by diagnosing it specifically as a lack of whitespace problem, including a fixit to insert the missing whitespace (to transform it into "X * -4". This even handles the cases where there are multiple valid (single) splits possible by emitting a series of notes.
- Loading branch information
Showing
5 changed files
with
189 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters