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

Method AddVisitable

Source/cmSpdxSerializer.cxx:50–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void cmSpdxSerializer::AddVisitable(std::string const& key,
51 cmSbomObject const& visitable)
52{
53 if (visitable.IsNull()) {
54 return;
55 }
56
57 Json::Value parentValue = std::move(CurrentValue);
58 visitable.Serialize(*this);
59 Json::Value childValue = std::move(CurrentValue);
60
61 CurrentValue = std::move(parentValue);
62 CurrentValue[key] = std::move(childValue);
63}
64
65void cmSpdxSerializer::AddVectorIfPresent(std::string const& key,
66 std::vector<cmSbomObject> const& vec)

Callers 1

SerializeMethod · 0.80

Calls 3

moveFunction · 0.85
IsNullMethod · 0.45
SerializeMethod · 0.45

Tested by

no test coverage detected