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

Method Resolve

Source/cmPathResolver.cxx:467–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465
466template <class Policy>
467cmsys::Status Impl<Policy>::Resolve(std::string in, std::string& out)
468{
469 P = std::move(in);
470 std::replace(P.begin(), P.end(), '\\', '/');
471 for (;;) {
472 Control control = this->ResolvePath();
473 switch (control.tag) {
474 case Control::Tag::Continue:
475 out = std::move(P);
476 return cmsys::Status::Success();
477 case Control::Tag::Restart:
478 continue;
479 case Control::Tag::Error:
480 out = std::move(P);
481 return control.error;
482 };
483 }
484}
485
486}
487

Callers 1

Calls 4

ResolvePathMethod · 0.95
moveFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected