From 83dadc7dd7df6b002e012e6652c0e1e114ccc73c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 7 Nov 2012 18:15:53 +0000 Subject: [PATCH] objective-C modern translator. Start the line directive on a new line. llvm-svn: 167542 --- clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp index a86da54..4b56b37 100644 --- a/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp +++ b/clang/lib/Rewrite/Frontend/RewriteModernObjC.cpp @@ -3112,7 +3112,7 @@ void RewriteModernObjC::RewriteLineDirective(const Decl *D) { SourceLocation Location = D->getLocation(); if (Location.isFileID()) { - std::string LineString("#line "); + std::string LineString("\n#line "); PresumedLoc PLoc = SM->getPresumedLoc(Location); LineString += utostr(PLoc.getLine()); LineString += " \""; -- 2.7.4