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

Method Replay

Source/cmMacroCommand.cxx:167–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167bool cmMacroFunctionBlocker::Replay(std::vector<cmListFileFunction> functions,
168 cmExecutionStatus& status)
169{
170 cmMakefile& mf = status.GetMakefile();
171 mf.AppendProperty("MACROS", this->Args[0]);
172 // create a new command and add it to cmake
173 cmMacroHelperCommand f;
174 f.Args = this->Args;
175 f.Functions = std::move(functions);
176 f.FilePath = this->GetStartingContext().FilePath;
177 mf.RecordPolicies(f.Policies);
178 return mf.GetState()->AddScriptedCommand(
179 this->Args[0],
180 BT<cmState::Command>(std::move(f),
181 mf.GetBacktrace().Push(this->GetStartingContext())),
182 mf);
183}
184}
185
186bool cmMacroCommand(std::vector<std::string> const& args,

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected