]> granicus.if.org Git - clang/commitdiff
no need to avoid pasting >* It can't form ->*, because we know the previous
authorChris Lattner <sabre@nondot.org>
Sun, 22 Jul 2007 22:33:25 +0000 (22:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Jul 2007 22:33:25 +0000 (22:33 +0000)
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

Driver/PrintPreprocessedOutput.cpp

index 9664cbbb655ec89eea41a4d95e5c23f939758cbd..f857fd63b683b58e32586eed37e25be3bb789bee 100644 (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:         // %=, %>, %: