]> granicus.if.org Git - clang/commitdiff
objective-C modern translator. Start the line
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 7 Nov 2012 18:15:53 +0000 (18:15 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 7 Nov 2012 18:15:53 +0000 (18:15 +0000)
directive on a new line.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167542 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/Frontend/RewriteModernObjC.cpp

index a86da54721e31da58cfee3b2f4739744f6285407..4b56b3720a3fcef7ce46e6a2a6f8ded092d545fa 100644 (file)
@@ -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 += " \"";