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

Function cmMathCommand

Source/cmMathCommand.cxx:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18
19bool cmMathCommand(std::vector<std::string> const& args,
20 cmExecutionStatus& status)
21{
22 if (args.empty()) {
23 status.SetError("must be called with at least one argument.");
24 return false;
25 }
26 std::string const& subCommand = args[0];
27 if (subCommand == "EXPR") {
28 return HandleExprCommand(args, status);
29 }
30 std::string e = "does not recognize sub-command " + subCommand;
31 status.SetError(e);
32 return false;
33}
34
35namespace {
36bool HandleExprCommand(std::vector<std::string> const& args,

Callers

nothing calls this directly

Calls 3

HandleExprCommandFunction · 0.85
emptyMethod · 0.45
SetErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…