| 199 | NotNode() {} // NOLINT(modernize-use-equals-default) |
| 200 | |
| 201 | std::string Evaluate( |
| 202 | std::vector<std::string> const& parameters, cm::GenEx::Evaluation* eval, |
| 203 | GeneratorExpressionContent const* content, |
| 204 | cmGeneratorExpressionDAGChecker* /*dagChecker*/) const override |
| 205 | { |
| 206 | if (parameters.front() != "0" && parameters.front() != "1") { |
| 207 | reportError( |
| 208 | eval, content->GetOriginalExpression(), |
| 209 | "$<NOT> parameter must resolve to exactly one '0' or '1' value."); |
| 210 | return std::string(); |
| 211 | } |
| 212 | return parameters.front() == "0" ? "1" : "0"; |
| 213 | } |
| 214 | } notNode; |
| 215 | |
| 216 | static const struct BoolNode : public cmGeneratorExpressionNode |
nothing calls this directly
no test coverage detected