[cmake-developers] [PATCH 7/9] Xcode: PrintComment will prepend a whitespace itself before the comment
Gregor Jasny
gjasny at googlemail.com
Mon Apr 13 15:38:04 EDT 2015
---
Source/cmXCode21Object.cxx | 2 +-
Source/cmXCodeObject.cxx | 5 ++---
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;
--
2.3.3
More information about the cmake-developers
mailing list