Fix #266
This commit is contained in:
parent
0d80bcf5e3
commit
066c44070e
|
@ -153,6 +153,11 @@ class UnmodifiedFinder:BaseAnalyzer
|
||||||
foreachStatement.declarationOrStatement.accept(this);
|
foreachStatement.declarationOrStatement.accept(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override void visit(const TraitsExpression)
|
||||||
|
{
|
||||||
|
// Issue #266. Ignore everything inside of __traits expressions.
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template PartsMightModify(T)
|
template PartsMightModify(T)
|
||||||
|
|
|
@ -316,6 +316,11 @@ class UnusedVariableCheck : BaseAnalyzer
|
||||||
variableUsed(primary.identifierChain.identifiers[0].text);
|
variableUsed(primary.identifierChain.identifiers[0].text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override void visit(const TraitsExpression)
|
||||||
|
{
|
||||||
|
// Issue #266. Ignore everything inside of __traits expressions.
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
mixin template PartsUseVariables(NodeType)
|
mixin template PartsUseVariables(NodeType)
|
||||||
|
|
Loading…
Reference in New Issue