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

Method NewREGEX

Source/cmList.cxx:716–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714}
715
716std::unique_ptr<cmList::TransformSelector> cmList::TransformSelector::NewREGEX(
717 std::string const& regex)
718{
719 std::unique_ptr<::TransformSelector> selector =
720 cm::make_unique<TransformSelectorRegex>(regex);
721 if (!selector->Validate()) {
722 throw transform_error(
723 cmStrCat("sub-command TRANSFORM, selector REGEX failed to compile "
724 "regex \"",
725 regex, "\"."));
726 }
727 // weird construct to please all compilers
728 return std::unique_ptr<cmList::TransformSelector>(selector.release());
729}
730std::unique_ptr<cmList::TransformSelector> cmList::TransformSelector::NewREGEX(
731 std::string&& regex)
732{

Callers

nothing calls this directly

Calls 5

transform_errorClass · 0.85
moveFunction · 0.85
cmStrCatFunction · 0.70
ValidateMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected