cmBreakCommand
| 8 | |
| 9 | // cmBreakCommand |
| 10 | bool cmBreakCommand(std::vector<std::string> const& args, |
| 11 | cmExecutionStatus& status) |
| 12 | { |
| 13 | if (!status.GetMakefile().IsLoopBlock()) { |
| 14 | status.GetMakefile().IssueMessage( |
| 15 | MessageType::FATAL_ERROR, |
| 16 | "A BREAK command was found outside of a proper " |
| 17 | "FOREACH or WHILE loop scope."); |
| 18 | return false; |
| 19 | } |
| 20 | |
| 21 | status.SetBreakInvoked(); |
| 22 | |
| 23 | if (!args.empty()) { |
| 24 | status.GetMakefile().IssueMessage( |
| 25 | MessageType::FATAL_ERROR, |
| 26 | "The BREAK command does not accept any arguments."); |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | return true; |
| 31 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…