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

Method AppendLinkedResource

Source/cmExtraEclipseCDT4Generator.cxx:1195–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1193}
1194
1195void cmExtraEclipseCDT4Generator::AppendLinkedResource(cmXMLWriter& xml,
1196 std::string const& name,
1197 std::string const& path,
1198 LinkType linkType)
1199{
1200 char const* locationTag = "location";
1201 int typeTag = 2;
1202 if (linkType == VirtualFolder) // ... and not a linked folder
1203 {
1204 locationTag = "locationURI";
1205 }
1206 if (linkType == LinkToFile) {
1207 typeTag = 1;
1208 }
1209
1210 xml.StartElement("link");
1211 xml.Element("name", name);
1212 xml.Element("type", typeTag);
1213 xml.Element(locationTag, path);
1214 xml.EndElement();
1215}

Callers

nothing calls this directly

Calls 3

StartElementMethod · 0.45
ElementMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected