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

Function BuildLabelRE

Source/CTest/cmCTestTestHandler.cxx:454–464  ·  view source on GitHub ↗

Given a multi-option value `parts`, compile those parts into * regular expressions in `expressions`. Skip empty values. * Returns true if there were any expressions. */

Source from the content-addressed store, hash-verified

452 * Returns true if there were any expressions.
453 */
454static bool BuildLabelRE(std::vector<std::string> const& parts,
455 std::vector<cmsys::RegularExpression>& expressions)
456{
457 expressions.clear();
458 for (auto const& p : parts) {
459 if (!p.empty()) {
460 expressions.emplace_back(p);
461 }
462 }
463 return !expressions.empty();
464}
465
466bool cmCTestTestHandler::ProcessOptions()
467{

Callers 1

ProcessOptionsMethod · 0.85

Calls 3

emplace_backMethod · 0.80
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…