forked from OSchip/llvm-project
Make sure clang puts tokens from different files on separate lines in "-E -P" mode. <rdar://problem/12774044>
llvm-svn: 171944
This commit is contained in:
parent
d7678c6af5
commit
c52435b4a2
|
@ -268,7 +268,10 @@ void PrintPPOutputPPCallbacks::FileChanged(SourceLocation Loc,
|
|||
Lexer::Stringify(CurFilename);
|
||||
FileType = NewFileType;
|
||||
|
||||
if (DisableLineMarkers) return;
|
||||
if (DisableLineMarkers) {
|
||||
startNewLineIfNeeded(/*ShouldUpdateCurrentLine=*/false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Initialized) {
|
||||
WriteLineInfo(CurLine);
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: %clang_cc1 -E -P %s | FileCheck %s
|
||||
// CHECK: int x;
|
||||
// CHECK-NEXT: int x;
|
||||
|
||||
#include "print_line_include.h"
|
||||
#include "print_line_include.h"
|
|
@ -0,0 +1 @@
|
|||
int x;
|
Loading…
Reference in New Issue