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

Function collectPathsForDebug

Source/cmFindPackageCommand.cxx:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76};
77
78std::size_t collectPathsForDebug(std::string& buffer,
79 cmSearchPath const& searchPath,
80 std::size_t const startIndex = 0)
81{
82 auto const& paths = searchPath.GetPaths();
83 if (paths.empty()) {
84 buffer += " none\n";
85 return 0;
86 }
87 for (auto i = startIndex; i < paths.size(); i++) {
88 buffer += cmStrCat(" ", paths[i].Path, '\n');
89 }
90 return paths.size();
91}
92
93#if !(defined(_WIN32) && !defined(__CYGWIN__))
94class cmFindPackageCommandHoldFile

Calls 3

cmStrCatFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…