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

Method PrintList

Source/cmXCode21Object.cxx:32–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void cmXCode21Object::PrintList(
33 std::vector<std::unique_ptr<cmXCodeObject>> const& v, std::ostream& out,
34 PBXType t)
35{
36 bool hasOne = false;
37 for (auto const& obj : v) {
38 if (obj->GetType() == OBJECT && obj->GetIsA() == t) {
39 hasOne = true;
40 break;
41 }
42 }
43 if (!hasOne) {
44 return;
45 }
46 out << "\n/* Begin " << PBXTypeNames[t] << " section */\n";
47 for (auto const& obj : v) {
48 if (obj->GetType() == OBJECT && obj->GetIsA() == t) {
49 obj->Print(out);
50 }
51 }
52 out << "/* End " << PBXTypeNames[t] << " section */\n";
53}
54
55void cmXCode21Object::PrintList(
56 std::vector<std::unique_ptr<cmXCodeObject>> const& v, std::ostream& out)

Callers

nothing calls this directly

Calls 3

GetIsAMethod · 0.80
GetTypeMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected