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

Method AppendScannerProfile

Source/cmExtraEclipseCDT4Generator.cxx:1160–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1158}
1159
1160void cmExtraEclipseCDT4Generator::AppendScannerProfile(
1161 cmXMLWriter& xml, std::string const& profileID, bool openActionEnabled,
1162 std::string const& openActionFilePath, bool pParserEnabled,
1163 std::string const& scannerInfoProviderID,
1164 std::string const& runActionArguments, std::string const& runActionCommand,
1165 bool runActionUseDefault, bool sipParserEnabled)
1166{
1167 xml.StartElement("profile");
1168 xml.Attribute("id", profileID);
1169
1170 xml.StartElement("buildOutputProvider");
1171 xml.StartElement("openAction");
1172 xml.Attribute("enabled", openActionEnabled ? "true" : "false");
1173 xml.Attribute("filePath", openActionFilePath);
1174 xml.EndElement(); // openAction
1175 xml.StartElement("parser");
1176 xml.Attribute("enabled", pParserEnabled ? "true" : "false");
1177 xml.EndElement(); // parser
1178 xml.EndElement(); // buildOutputProvider
1179
1180 xml.StartElement("scannerInfoProvider");
1181 xml.Attribute("id", scannerInfoProviderID);
1182 xml.StartElement("runAction");
1183 xml.Attribute("arguments", runActionArguments);
1184 xml.Attribute("command", runActionCommand);
1185 xml.Attribute("useDefault", runActionUseDefault ? "true" : "false");
1186 xml.EndElement(); // runAction
1187 xml.StartElement("parser");
1188 xml.Attribute("enabled", sipParserEnabled ? "true" : "false");
1189 xml.EndElement(); // parser
1190 xml.EndElement(); // scannerInfoProvider
1191
1192 xml.EndElement(); // profile
1193}
1194
1195void cmExtraEclipseCDT4Generator::AppendLinkedResource(cmXMLWriter& xml,
1196 std::string const& name,

Callers

nothing calls this directly

Calls 3

AttributeMethod · 0.80
StartElementMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected