[cfe-commits] r56636 - /cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Daniel Dunbar daniel at zuster.org
Thu Sep 25 18:13:35 PDT 2008


Author: ddunbar
Date: Thu Sep 25 20:13:35 2008
New Revision: 56636

URL: http://llvm.org/viewvc/llvm-project?rev=56636&view=rev
Log:
Make clang preprocessed output a bit more like gcc output.

Modified:
    cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=56636&r1=56635&r2=56636&view=diff

==============================================================================
--- cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/Driver/PrintPreprocessedOutput.cpp Thu Sep 25 20:13:35 2008
@@ -120,7 +120,7 @@
 
   // If this line is "close enough" to the original line, just print newlines,
   // otherwise print a #line directive.
-  if (LineNo-CurLine < 8) {
+  if (LineNo-CurLine <= 8) {
     if (LineNo-CurLine == 1)
       OS << '\n';
     else if (LineNo == CurLine)





More information about the cfe-commits mailing list