diff options
author | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-21 22:06:45 (GMT) |
---|---|---|
committer | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-22 07:51:19 (GMT) |
commit | c12222db86859a5a5ce9163a5309bb0da10ec616 (patch) | |
tree | 674d778541027e2430ffe25a8155ad1aa2a44491 /Source/cmGeneratorExpressionNode.h | |
parent | 1811411fecf3d9769ad7a13f6ecd01c5351df9c4 (diff) | |
download | CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.zip CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.tar.gz CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.tar.bz2 |
cmGeneratorExpression: Remove Evaluate overload by parameter re-ordering
Simplify by re-ordering parameters of cmCompiledGeneratorExpression::Evaluate
so that frequently used parameters are before less frequently used parameters.
This allows with little extra arguments to get rid of one Evaluate overload,
which makes it easier to implement the cmGeneratorExpression::Evaluate utility.
The latter would otherwise need four overloads.
Diffstat (limited to 'Source/cmGeneratorExpressionNode.h')
-rw-r--r-- | Source/cmGeneratorExpressionNode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionNode.h b/Source/cmGeneratorExpressionNode.h index 7a36924..13e8484 100644 --- a/Source/cmGeneratorExpressionNode.h +++ b/Source/cmGeneratorExpressionNode.h @@ -43,8 +43,8 @@ struct cmGeneratorExpressionNode static std::string EvaluateDependentExpression( std::string const& prop, cmLocalGenerator* lg, cmGeneratorExpressionContext* context, const cmGeneratorTarget* headTarget, - const cmGeneratorTarget* currentTarget, - cmGeneratorExpressionDAGChecker* dagChecker); + cmGeneratorExpressionDAGChecker* dagChecker, + const cmGeneratorTarget* currentTarget); static const cmGeneratorExpressionNode* GetNode( const std::string& identifier); |