Skip to content

Commit 036b2f5

Browse files
committed
Minor style edits
1 parent 9d28cd5 commit 036b2f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Parse/Lexer.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ static bool isLeftBound(const char *tokBegin, const char *bufferBegin) {
682682
else
683683
return true;
684684

685-
case '\240':
686-
if (tokBegin - 1 != bufferBegin && tokBegin[-2] == '\302')
685+
case '\xA0':
686+
if (tokBegin - 1 != bufferBegin && tokBegin[-2] == '\xC2')
687687
return false; // Non-breaking whitespace (U+00A0)
688688
else
689689
return true;
@@ -722,8 +722,8 @@ static bool isRightBound(const char *tokEnd, bool isLeftBound,
722722
else
723723
return true;
724724

725-
case '\302':
726-
if (tokEnd[1] == '\240')
725+
case '\xC2':
726+
if (tokEnd[1] == '\xA0')
727727
return false; // Non-breaking whitespace (U+00A0)
728728
else
729729
return true;
@@ -1909,7 +1909,7 @@ bool Lexer::lexUnknown(bool EmitDiagnosticsIfToken) {
19091909
} else if (Codepoint == 0x000000A0) {
19101910
// Non-breaking whitespace (U+00A0)
19111911
diagnose(CurPtr - 1, diag::lex_nonbreaking_space)
1912-
.fixItReplaceChars(getSourceLoc(CurPtr - 1), getSourceLoc(Tmp), " ");
1912+
.fixItReplaceChars(getSourceLoc(CurPtr - 1), getSourceLoc(Tmp), " ");
19131913
CurPtr = Tmp;
19141914
return false;
19151915
} else if (Codepoint == 0x0000201D) {

0 commit comments

Comments
 (0)