|
@ -6,6 +6,7 @@ |
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
#include <assert.h>
|
|
|
#include <stddef.h>
|
|
|
#include <stddef.h>
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
|
cmGeneratorExpressionParser::cmGeneratorExpressionParser( |
|
|
cmGeneratorExpressionParser::cmGeneratorExpressionParser( |
|
|
const std::vector<cmGeneratorExpressionToken>& tokens) |
|
|
const std::vector<cmGeneratorExpressionToken>& tokens) |
|
@ -92,7 +93,7 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression( |
|
|
assert(this->it != this->Tokens.end()); |
|
|
assert(this->it != this->Tokens.end()); |
|
|
++this->it; |
|
|
++this->it; |
|
|
--this->NestingLevel; |
|
|
--this->NestingLevel; |
|
|
content->SetIdentifier(identifier); |
|
|
|
|
|
|
|
|
content->SetIdentifier(std::move(identifier)); |
|
|
result.push_back(content); |
|
|
result.push_back(content); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -198,8 +199,8 @@ void cmGeneratorExpressionParser::ParseGeneratorExpression( |
|
|
((this->it - 1)->Content - startToken->Content) + (this->it - 1)->Length; |
|
|
((this->it - 1)->Content - startToken->Content) + (this->it - 1)->Length; |
|
|
GeneratorExpressionContent* content = |
|
|
GeneratorExpressionContent* content = |
|
|
new GeneratorExpressionContent(startToken->Content, contentLength); |
|
|
new GeneratorExpressionContent(startToken->Content, contentLength); |
|
|
content->SetIdentifier(identifier); |
|
|
|
|
|
content->SetParameters(parameters); |
|
|
|
|
|
|
|
|
content->SetIdentifier(std::move(identifier)); |
|
|
|
|
|
content->SetParameters(std::move(parameters)); |
|
|
result.push_back(content); |
|
|
result.push_back(content); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|