From: Daniel Dunbar Date: Fri, 26 Sep 2008 01:13:35 +0000 (+0000) Subject: Make clang preprocessed output a bit more like gcc output. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd96684034c29c59a134dfec20d61c132e60ef30;p=clang Make clang preprocessed output a bit more like gcc output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56636 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index f0a40160c0..2b3570c675 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp @@ -120,7 +120,7 @@ bool PrintPPOutputPPCallbacks::MoveToLine(SourceLocation Loc) { // 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)