mirror of
https://github.com/reactos/CMake.git
synced 2024-12-20 10:38:08 +00:00
Rename the method determining if a genex accepts arbitrary content.
The meaning of this will be expanded to generator expressions with more than a single parameter.
This commit is contained in:
parent
dc742fe4be
commit
bd638ee20f
@ -51,7 +51,7 @@ struct cmGeneratorExpressionNode
|
||||
|
||||
virtual bool RequiresLiteralInput() const { return false; }
|
||||
|
||||
virtual bool AcceptsSingleArbitraryContentParameter() const
|
||||
virtual bool AcceptsArbitraryContentParameter() const
|
||||
{ return false; }
|
||||
|
||||
virtual int NumExpectedParameters() const { return 1; }
|
||||
@ -70,7 +70,7 @@ static const struct ZeroNode : public cmGeneratorExpressionNode
|
||||
|
||||
virtual bool GeneratesContent() const { return false; }
|
||||
|
||||
virtual bool AcceptsSingleArbitraryContentParameter() const { return true; }
|
||||
virtual bool AcceptsArbitraryContentParameter() const { return true; }
|
||||
|
||||
std::string Evaluate(const std::vector<std::string> &,
|
||||
cmGeneratorExpressionContext *,
|
||||
@ -87,7 +87,7 @@ static const struct OneNode : public cmGeneratorExpressionNode
|
||||
{
|
||||
OneNode() {}
|
||||
|
||||
virtual bool AcceptsSingleArbitraryContentParameter() const { return true; }
|
||||
virtual bool AcceptsArbitraryContentParameter() const { return true; }
|
||||
|
||||
std::string Evaluate(const std::vector<std::string> &,
|
||||
cmGeneratorExpressionContext *,
|
||||
@ -600,7 +600,7 @@ static const struct TargetNameNode : public cmGeneratorExpressionNode
|
||||
|
||||
virtual bool GeneratesContent() const { return true; }
|
||||
|
||||
virtual bool AcceptsSingleArbitraryContentParameter() const { return true; }
|
||||
virtual bool AcceptsArbitraryContentParameter() const { return true; }
|
||||
virtual bool RequiresLiteralInput() const { return true; }
|
||||
|
||||
std::string Evaluate(const std::vector<std::string> ¶meters,
|
||||
@ -1075,7 +1075,8 @@ std::string GeneratorExpressionContent::Evaluate(
|
||||
|
||||
if (!node->GeneratesContent())
|
||||
{
|
||||
if (node->AcceptsSingleArbitraryContentParameter())
|
||||
if (node->NumExpectedParameters() == 1
|
||||
&& node->AcceptsArbitraryContentParameter())
|
||||
{
|
||||
if (this->ParamChildren.empty())
|
||||
{
|
||||
@ -1092,7 +1093,8 @@ std::string GeneratorExpressionContent::Evaluate(
|
||||
return std::string();
|
||||
}
|
||||
|
||||
if (node->AcceptsSingleArbitraryContentParameter())
|
||||
if (node->NumExpectedParameters() == 1
|
||||
&& node->AcceptsArbitraryContentParameter())
|
||||
{
|
||||
return this->ProcessArbitraryContent(node, identifier, context,
|
||||
dagChecker,
|
||||
|
Loading…
Reference in New Issue
Block a user