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

Function SerializeIfPresent

Source/cmSpdx.cxx:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include "cmSbomSerializer.h"
9
10inline void SerializeIfPresent(cmSbomSerializer& s, std::string const& key,
11 cm::optional<std::string> const& v)
12{
13 if (v) {
14 s.AddString(key, *v);
15 }
16}
17
18std::string to_string(cmSpdxIntegrityMethod::HashAlgorithmId id)
19{

Callers 1

SerializeMethod · 0.85

Calls 1

AddStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…