summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-29 17:26:22 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-29 17:26:22 +0000
commitc3b4b79beb5c911d72990cce15cb33ac9000e3f4 (patch)
treec314e7d545efe79a788eab00e328cd0f6ec4f56a /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentb5ad4ec7a31206227b1cd657dd41b21cc6afc98e (diff)
downloadbcm5719-llvm-c3b4b79beb5c911d72990cce15cb33ac9000e3f4.tar.gz
bcm5719-llvm-c3b4b79beb5c911d72990cce15cb33ac9000e3f4.zip
When emitting a preprocessed file with implicit module imports, make sure line directives are emitted in the next line.
rdar://13722737 llvm-svn: 180718
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index 3cef68df32c..9fd36494358 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -335,6 +335,7 @@ void PrintPPOutputPPCallbacks::InclusionDirective(SourceLocation HashLoc,
MoveToLine(HashLoc);
OS << "@import " << Imported->getFullModuleName() << ";"
<< " /* clang -E: implicit import for \"" << File->getName() << "\" */";
+ EmittedTokensOnThisLine = true;
}
}
OpenPOWER on IntegriCloud