forked from OSchip/llvm-project
Parse: cleanup some bleeding whitespace
Clean up some bleeding whitespace that I noticed. NFC llvm-svn: 300908
This commit is contained in:
parent
be2dcaf45a
commit
d9e3bf70cd
|
@ -339,7 +339,7 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
|
|||
ColonLoc = Tok.getLocation();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Code completion for the right-hand side of an assignment expression
|
||||
// goes through a special hook that takes the left-hand side into account.
|
||||
if (Tok.is(tok::code_completion) && NextTokPrec == prec::Assignment) {
|
||||
|
@ -347,7 +347,7 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
|
|||
cutOffParsing();
|
||||
return ExprError();
|
||||
}
|
||||
|
||||
|
||||
// Parse another leaf here for the RHS of the operator.
|
||||
// ParseCastExpression works here because all RHS expressions in C have it
|
||||
// as a prefix, at least. However, in C++, an assignment-expression could
|
||||
|
@ -456,6 +456,7 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) {
|
|||
if (!getLangOpts().CPlusPlus)
|
||||
continue;
|
||||
}
|
||||
|
||||
// Ensure potential typos aren't left undiagnosed.
|
||||
if (LHS.isInvalid()) {
|
||||
Actions.CorrectDelayedTyposInExpr(OrigLHS);
|
||||
|
|
Loading…
Reference in New Issue