[cfe-dev] Fix paste avoidance

Neil Booth neil at daikokuya.co.uk
Mon Jul 23 15:49:37 PDT 2007


Apparently a logic bug; confused how it was working for anyone
else.

Neil.

-------------- next part --------------
Index: Driver/PrintPreprocessedOutput.cpp
===================================================================
--- Driver/PrintPreprocessedOutput.cpp	(revision 40450)
+++ Driver/PrintPreprocessedOutput.cpp	(working copy)
@@ -540,7 +540,7 @@
     } else if (Tok.hasLeadingSpace() || 
                // If we haven't emitted a token on this line yet, PrevTok isn't
                // useful to look at and no concatenation could happen anyway.
-               (!Callbacks->hasEmittedTokensOnThisLine() &&
+               (Callbacks->hasEmittedTokensOnThisLine() &&
                 // Don't print "-" next to "-", it would form "--".
                 Callbacks->AvoidConcat(PrevTok, Tok))) {
       OutputChar(' ');


More information about the cfe-dev mailing list