[cfe-commits] r167542 - /cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Nov 7 10:15:53 PST 2012
Author: fjahanian
Date: Wed Nov 7 12:15:53 2012
New Revision: 167542
URL: http://llvm.org/viewvc/llvm-project?rev=167542&view=rev
Log:
objective-C modern translator. Start the line
directive on a new line.
Modified:
cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp
Modified: cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp?rev=167542&r1=167541&r2=167542&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp (original)
+++ cfe/trunk/lib/Rewrite/Frontend/RewriteModernObjC.cpp Wed Nov 7 12:15:53 2012
@@ -3112,7 +3112,7 @@
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 += " \"";
More information about the cfe-commits
mailing list