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:
Chris Lattner 2007-07-22 22:33:25 +00:00
parent d956fcac86
commit 7dd7a1d310
1 changed files with 2 additions and 3 deletions

View File

@ -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: // %=, %>, %: