| 161 | } |
| 162 | |
| 163 | bool 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 |
nothing calls this directly
no test coverage detected