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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 int NumExpectedParameters() const override { return 1; }
221
222 std::string Evaluate(
223 std::vector<std::string> const& parameters,
224 cm::GenEx::Evaluation* /*eval*/,
225 GeneratorExpressionContent const* /*content*/,
226 cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override
227 {
228 return !cmIsOff(parameters.front()) ? "1" : "0";
229 }
230} boolNode;
231
232static const struct IfNode : public cmGeneratorExpressionNode

Callers

nothing calls this directly

Calls 2

cmIsOffFunction · 0.85
frontMethod · 0.45

Tested by

no test coverage detected