MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteHeaderSource

Method WriteHeaderSource

Source/cmVisualStudio10TargetGenerator.cxx:2188–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2186}
2187
2188void cmVisualStudio10TargetGenerator::WriteHeaderSource(
2189 Elem& e1, cmSourceFile const* sf, ConfigToSettings const& toolSettings)
2190{
2191 std::string const& fileName = sf->GetFullPath();
2192 Elem e2(e1, "ClInclude");
2193 this->WriteSource(e2, sf);
2194 if (this->IsResxHeader(fileName)) {
2195 e2.Element("FileType", "CppForm");
2196 } else if (this->IsXamlHeader(fileName)) {
2197 e2.Element("DependentUpon",
2198 fileName.substr(0, fileName.find_last_of('.')));
2199 }
2200 this->FinishWritingSource(e2, toolSettings);
2201}
2202
2203void cmVisualStudio10TargetGenerator::ParseSettingsProperty(
2204 std::string const& settingsPropertyValue, ConfigToSettings& toolSettings)

Callers 1

WriteAllSourcesMethod · 0.95

Calls 8

WriteSourceMethod · 0.95
IsResxHeaderMethod · 0.95
IsXamlHeaderMethod · 0.95
FinishWritingSourceMethod · 0.95
find_last_ofMethod · 0.80
GetFullPathMethod · 0.45
ElementMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected