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.
This commit is contained in:
Vitaly Stakhovsky
2018-03-05 19:21:57 -05:00
committed by Brad King
parent e02f4f0660
commit 59d8cfb85e
2 changed files with 166 additions and 312 deletions

View File

@@ -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);