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

Function cmContinueCommand

Source/cmContinueCommand.cxx:11–35  ·  view source on GitHub ↗

cmContinueCommand

Source from the content-addressed store, hash-verified

9
10// cmContinueCommand
11bool cmContinueCommand(std::vector<std::string> const& args,
12 cmExecutionStatus& status)
13{
14 if (!status.GetMakefile().IsLoopBlock()) {
15 status.GetMakefile().IssueMessage(
16 MessageType::FATAL_ERROR,
17 "A CONTINUE command was found outside of a "
18 "proper FOREACH or WHILE loop scope.");
19 cmSystemTools::SetFatalErrorOccurred();
20 return true;
21 }
22
23 status.SetContinueInvoked();
24
25 if (!args.empty()) {
26 status.GetMakefile().IssueMessage(
27 MessageType::FATAL_ERROR,
28 "The CONTINUE command does not accept any "
29 "arguments.");
30 cmSystemTools::SetFatalErrorOccurred();
31 return true;
32 }
33
34 return true;
35}

Callers

nothing calls this directly

Calls 5

IsLoopBlockMethod · 0.80
SetContinueInvokedMethod · 0.80
GetMakefileMethod · 0.45
IssueMessageMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…