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

Function WriteMultiArgument

Source/cmInstallGetRuntimeDependenciesGenerator.cxx:28–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27template <typename T, typename F>
28void WriteMultiArgument(std::ostream& os, cm::string_view keyword,
29 std::vector<T> const& list,
30 cmScriptGeneratorIndent indent, F transform)
31{
32 bool first = true;
33 for (auto const& item : list) {
34 cm::optional<std::string> result = transform(item);
35 if (result) {
36 if (first) {
37 os << indent << " " << keyword << "\n";
38 first = false;
39 }
40 os << indent << " " << *result << "\n";
41 }
42 }
43}
44
45void WriteFilesArgument(
46 std::ostream& os, cm::string_view keyword,

Callers 2

WriteFilesArgumentFunction · 0.85

Calls 1

transformFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…