| 397 | } |
| 398 | |
| 399 | bool HandleReverseCommand(std::vector<std::string> const& args, |
| 400 | cmExecutionStatus& status) |
| 401 | { |
| 402 | assert(args.size() >= 2); |
| 403 | if (args.size() > 2) { |
| 404 | status.SetError("sub-command REVERSE only takes one argument."); |
| 405 | return false; |
| 406 | } |
| 407 | |
| 408 | std::string const& listName = args[1]; |
| 409 | // expand the variable |
| 410 | auto list = GetList(listName, status.GetMakefile()); |
| 411 | |
| 412 | if (!list) { |
| 413 | return true; |
| 414 | } |
| 415 | |
| 416 | status.GetMakefile().AddDefinition(listName, list->reverse().to_string()); |
| 417 | return true; |
| 418 | } |
| 419 | |
| 420 | bool HandleRemoveDuplicatesCommand(std::vector<std::string> const& args, |
| 421 | cmExecutionStatus& status) |
nothing calls this directly
no test coverage detected
searching dependent graphs…