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

Method Evaluate

Source/cmGeneratorExpressionNode.cxx:266–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 int NumExpectedParameters() const override { return 2; }
265
266 std::string Evaluate(
267 std::vector<std::string> const& parameters,
268 cm::GenEx::Evaluation* /*eval*/,
269 GeneratorExpressionContent const* /*content*/,
270 cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override
271 {
272 return cm::CMakeString{ parameters.front() }.Compare(
273 cm::CMakeString::CompOperator::EQUAL, parameters[1])
274 ? "1"
275 : "0";
276 }
277} strEqualNode;
278static const struct StrLessNode : public cmGeneratorExpressionNode
279{

Callers

nothing calls this directly

Calls 2

CompareMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected