From: Chris Lattner Date: Sun, 22 Jul 2007 22:33:25 +0000 (+0000) Subject: no need to avoid pasting >* It can't form ->*, because we know the previous X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=349b42aed281533c04102ac4647023b3f02036e0;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40409 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index 9664cbbb65..f857fd63b6 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp @@ -361,9 +361,8 @@ bool PrintPPOutputPPCallbacks::AvoidConcat(const Token &PrevTok, case tok::less: // <<, <<=, <=, >, >=, >>=, >?=, >?, ->* - return FirstChar == '>' || FirstChar == '?' || FirstChar == '=' || - FirstChar == '*'; + case tok::greater: // >>, >=, >>=, >?=, >? + return FirstChar == '>' || FirstChar == '?' || FirstChar == '='; case tok::pipe: // ||, |= return FirstChar == '|' || FirstChar == '='; case tok::percent: // %=, %>, %: