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

Method Replay

Source/cmFunctionCommand.cxx:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163bool cmFunctionFunctionBlocker::Replay(
164 std::vector<cmListFileFunction> functions, cmExecutionStatus& status)
165{
166 cmMakefile& mf = status.GetMakefile();
167 // create a new command and add it to cmake
168 cmFunctionHelperCommand f;
169 f.Args = this->Args;
170 f.Functions = std::move(functions);
171 f.FilePath = this->GetStartingContext().FilePath;
172 f.Line = this->GetStartingContext().Line;
173 mf.RecordPolicies(f.Policies);
174 return mf.GetState()->AddScriptedCommand(
175 this->Args.front(),
176 BT<cmState::Command>(std::move(f),
177 mf.GetBacktrace().Push(this->GetStartingContext())),
178 mf);
179}
180
181} // anonymous namespace
182

Callers

nothing calls this directly

Calls 8

moveFunction · 0.85
RecordPoliciesMethod · 0.80
AddScriptedCommandMethod · 0.80
PushMethod · 0.80
GetMakefileMethod · 0.45
GetStateMethod · 0.45
frontMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected