summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-04-09 08:14:47 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2015-04-17 19:50:05 (GMT)
commit6e8952c19385acb0ff9f58c2a462d91dd0624e05 (patch)
treeab9501315bf2119a3ee90274526a744cb3c2b83f
parent4bd2544b25655b6e20e5098a5f4cdd973288c106 (diff)
downloadCMake-6e8952c19385acb0ff9f58c2a462d91dd0624e05.zip
CMake-6e8952c19385acb0ff9f58c2a462d91dd0624e05.tar.gz
CMake-6e8952c19385acb0ff9f58c2a462d91dd0624e05.tar.bz2
Xcode: PrintComment will prepend a whitespace itself before the comment
-rw-r--r--Source/cmXCode21Object.cxx2
-rw-r--r--Source/cmXCodeObject.cxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmXCode21Object.cxx b/Source/cmXCode21Object.cxx
index 855e1ad..96f7b0f 100644
--- a/Source/cmXCode21Object.cxx
+++ b/Source/cmXCode21Object.cxx
@@ -31,7 +31,7 @@ void cmXCode21Object::PrintComment(std::ostream& out)
cmSystemTools::ReplaceString(this->Comment, "\"", "");
}
}
- out << "/* ";
+ out << " /* ";
out << this->Comment;
out << " */";
}
diff --git a/Source/cmXCodeObject.cxx b/Source/cmXCodeObject.cxx
index 72d8e99..e41f282 100644
--- a/Source/cmXCodeObject.cxx
+++ b/Source/cmXCodeObject.cxx
@@ -98,7 +98,7 @@ void cmXCodeObject::Print(std::ostream& out)
separator = " ";
indentFactor = 0;
}
- out << this->Id << " ";
+ out << this->Id;
if(!(this->IsA == PBXGroup && this->Comment.size() == 0))
{
this->PrintComment(out);
@@ -129,7 +129,7 @@ void cmXCodeObject::Print(std::ostream& out)
for(unsigned int k = 0; k < i->second->List.size(); k++)
{
cmXCodeObject::Indent(4*indentFactor, out);
- out << i->second->List[k]->Id << " ";
+ out << i->second->List[k]->Id;
i->second->List[k]->PrintComment(out);
out << "," << separator;
}
@@ -192,7 +192,6 @@ void cmXCodeObject::Print(std::ostream& out)
out << " = " << object->Object->Id;
if(object->Object->HasComment() && i->first != "remoteGlobalIDString")
{
- out << " ";
object->Object->PrintComment(out);
}
out << ";" << separator;