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

Method DeferGetCall

Source/cmMakefile.cxx:2557–2574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2555}
2556
2557cm::optional<std::string> cmMakefile::DeferGetCall(std::string const& id) const
2558{
2559 cm::optional<std::string> call;
2560 if (this->Defer) {
2561 std::string tmp;
2562 for (DeferCommand const& dc : this->Defer->Commands) {
2563 if (dc.Id == id) {
2564 tmp = dc.Command.OriginalName();
2565 for (cmListFileArgument const& arg : dc.Command.Arguments()) {
2566 tmp = cmStrCat(tmp, ';', arg.Value);
2567 }
2568 break;
2569 }
2570 }
2571 call = std::move(tmp);
2572 }
2573 return call;
2574}
2575
2576MessageType cmMakefile::ExpandVariablesInStringImpl(
2577 std::string& errorstr, std::string& source, bool escapeQuotes,

Callers 1

Calls 3

moveFunction · 0.85
ArgumentsMethod · 0.80
cmStrCatFunction · 0.70

Tested by

no test coverage detected