]> granicus.if.org Git - clang/commitdiff
Make clang preprocessed output a bit more like gcc output.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 26 Sep 2008 01:13:35 +0000 (01:13 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 26 Sep 2008 01:13:35 +0000 (01:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56636 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/PrintPreprocessedOutput.cpp

index f0a40160c057f8a76f6c3303e1baae2fcb4ca74e..2b3570c6756d7ef8d9844df9e82bfd9dd4c5f253 100644 (file)
@@ -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)