Browse Source

cmVisualStudio10TargetGenerator: Use helpers for XML tags

Make the XML generating code smaller, more structured, and less
error-prone.  This is a step towards future XML refactoring.
Vitaly Stakhovsky 7 năm trước cách đây
mục cha
commit
59d8cfb85e

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 160 - 310
Source/cmVisualStudio10TargetGenerator.cxx


+ 4 - 0
Source/cmVisualStudio10TargetGenerator.h

@@ -55,6 +55,10 @@ private:
 
   std::string ConvertPath(std::string const& path, bool forceRelative);
   void WriteString(const char* line, int indentLevel);
+  void WriteElem(const char* tag, const char* val, int indentLevel);
+  void WriteElem(const char* tag, std::string const& val, int indentLevel);
+  void WriteElemEscapeXML(const char* tag, std::string const& val,
+                          int indentLevel);
   void WriteProjectConfigurations();
   void WriteProjectConfigurationValues();
   void WriteMSToolConfigurationValues(std::string const& config);

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác