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

Function cmExecuteProcessCommandAppend

Source/cmExecuteProcessCommand.cxx:589–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589void cmExecuteProcessCommandAppend(std::vector<char>& output, char const* data,
590 std::size_t length)
591{
592#if defined(__APPLE__)
593 // HACK on Apple to work around bug with inserting at the
594 // end of an empty vector. This resulted in random failures
595 // that were hard to reproduce.
596 if (output.empty() && length > 0) {
597 output.push_back(data[0]);
598 ++data;
599 --length;
600 }
601#endif
602 cm::append(output, data, data + length);
603}
604}

Callers 1

cmExecuteProcessCommandFunction · 0.85

Calls 3

appendFunction · 0.85
push_backMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…