forked from OSchip/llvm-project
no need to avoid pasting >* It can't form ->*, because we know the previous
token was not -> and if the token before it was -, the - and > would avoid pasting. llvm-svn: 40409
This commit is contained in:
parent
d956fcac86
commit
7dd7a1d310
|
@ -361,9 +361,8 @@ bool PrintPPOutputPPCallbacks::AvoidConcat(const Token &PrevTok,
|
|||
case tok::less: // <<, <<=, <=, <?=, <?, <:, <%
|
||||
return FirstChar == '<' || FirstChar == '?' || FirstChar == '=' ||
|
||||
FirstChar == ':' || FirstChar == '%';
|
||||
case tok::greater: // >>, >=, >>=, >?=, >?, ->*
|
||||
return FirstChar == '>' || FirstChar == '?' || FirstChar == '=' ||
|
||||
FirstChar == '*';
|
||||
case tok::greater: // >>, >=, >>=, >?=, >?
|
||||
return FirstChar == '>' || FirstChar == '?' || FirstChar == '=';
|
||||
case tok::pipe: // ||, |=
|
||||
return FirstChar == '|' || FirstChar == '=';
|
||||
case tok::percent: // %=, %>, %:
|
||||
|
|
Loading…
Reference in New Issue