Genex: Fix case of methods in the dag checker.
This commit is contained in:
parent
646c6ec2f9
commit
6eb3218105
|
@ -31,7 +31,7 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
|
|||
top = p;
|
||||
p = p->Parent;
|
||||
}
|
||||
this->CheckResult = this->checkGraph();
|
||||
this->CheckResult = this->CheckGraph();
|
||||
|
||||
#define TEST_TRANSITIVE_PROPERTY_METHOD(METHOD) \
|
||||
top->METHOD () ||
|
||||
|
@ -61,13 +61,13 @@ cmGeneratorExpressionDAGChecker::cmGeneratorExpressionDAGChecker(
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
cmGeneratorExpressionDAGChecker::Result
|
||||
cmGeneratorExpressionDAGChecker::check() const
|
||||
cmGeneratorExpressionDAGChecker::Check() const
|
||||
{
|
||||
return this->CheckResult;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmGeneratorExpressionDAGChecker::reportError(
|
||||
void cmGeneratorExpressionDAGChecker::ReportError(
|
||||
cmGeneratorExpressionContext *context,
|
||||
const std::string &expr)
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ void cmGeneratorExpressionDAGChecker::reportError(
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
cmGeneratorExpressionDAGChecker::Result
|
||||
cmGeneratorExpressionDAGChecker::checkGraph() const
|
||||
cmGeneratorExpressionDAGChecker::CheckGraph() const
|
||||
{
|
||||
const cmGeneratorExpressionDAGChecker *parent = this->Parent;
|
||||
while (parent)
|
||||
|
|
|
@ -52,9 +52,9 @@ struct cmGeneratorExpressionDAGChecker
|
|||
ALREADY_SEEN
|
||||
};
|
||||
|
||||
Result check() const;
|
||||
Result Check() const;
|
||||
|
||||
void reportError(cmGeneratorExpressionContext *context,
|
||||
void ReportError(cmGeneratorExpressionContext *context,
|
||||
const std::string &expr);
|
||||
|
||||
bool EvaluatingLinkLibraries(const char *tgt = 0);
|
||||
|
@ -71,7 +71,7 @@ struct cmGeneratorExpressionDAGChecker
|
|||
{ this->TransitivePropertiesOnly = true; }
|
||||
|
||||
private:
|
||||
Result checkGraph() const;
|
||||
Result CheckGraph() const;
|
||||
|
||||
private:
|
||||
const cmGeneratorExpressionDAGChecker * const Parent;
|
||||
|
|
|
@ -957,10 +957,10 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
|||
content,
|
||||
dagCheckerParent);
|
||||
|
||||
switch (dagChecker.check())
|
||||
switch (dagChecker.Check())
|
||||
{
|
||||
case cmGeneratorExpressionDAGChecker::SELF_REFERENCE:
|
||||
dagChecker.reportError(context, content->GetOriginalExpression());
|
||||
dagChecker.ReportError(context, content->GetOriginalExpression());
|
||||
return std::string();
|
||||
case cmGeneratorExpressionDAGChecker::CYCLIC_REFERENCE:
|
||||
// No error. We just skip cyclic references.
|
||||
|
|
Loading…
Reference in New Issue