MCPcopy Index your code
hub / github.com/Kitware/CMake / addObject

Method addObject

Source/cmGlobalXCodeGenerator.cxx:934–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

932}
933
934void cmGlobalXCodeGenerator::addObject(std::unique_ptr<cmXCodeObject> obj)
935{
936 if (obj->GetType() == cmXCodeObject::OBJECT) {
937 std::string const& id = obj->GetId();
938
939 // If this is a duplicate id, it's an error:
940 //
941 if (this->XCodeObjectIDs.count(id)) {
942 cmSystemTools::Error(
943 "Xcode generator: duplicate object ids not allowed");
944 }
945
946 this->XCodeObjectIDs.insert(id);
947 }
948
949 this->XCodeObjects.push_back(std::move(obj));
950}
951
952cmXCodeObject* cmGlobalXCodeGenerator::CreateObject(
953 cmXCodeObject::PBXType ptype, cm::string_view key)

Callers 1

CreateObjectMethod · 0.95

Calls 7

moveFunction · 0.85
push_backMethod · 0.80
ErrorClass · 0.70
GetTypeMethod · 0.45
GetIdMethod · 0.45
countMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected