From: Fariborz Jahanian Date: Wed, 7 Nov 2012 18:15:53 +0000 (+0000) Subject: objective-C modern translator. Start the line X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b45ca9e6292b45ab39d8c44d15a617017f26198;p=clang objective-C modern translator. Start the line directive on a new line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167542 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/Frontend/RewriteModernObjC.cpp b/lib/Rewrite/Frontend/RewriteModernObjC.cpp index a86da54721..4b56b3720a 100644 --- a/lib/Rewrite/Frontend/RewriteModernObjC.cpp +++ b/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 += " \"";