Procházet zdrojové kódy

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 před 8 roky
rodič
revize
59d8cfb85e

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 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);

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů