| 375 | } |
| 376 | |
| 377 | bool HandleRemoveItemCommand(std::vector<std::string> const& args, |
| 378 | cmExecutionStatus& status) |
| 379 | { |
| 380 | assert(args.size() >= 2); |
| 381 | |
| 382 | if (args.size() == 2) { |
| 383 | return true; |
| 384 | } |
| 385 | |
| 386 | std::string const& listName = args[1]; |
| 387 | // expand the variable |
| 388 | auto list = GetList(listName, status.GetMakefile()); |
| 389 | |
| 390 | if (!list) { |
| 391 | return true; |
| 392 | } |
| 393 | |
| 394 | status.GetMakefile().AddDefinition( |
| 395 | listName, list->remove_items(args.begin() + 2, args.end()).to_string()); |
| 396 | return true; |
| 397 | } |
| 398 | |
| 399 | bool HandleReverseCommand(std::vector<std::string> const& args, |
| 400 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…