|
|
@ -76,11 +76,13 @@ public class CmdDataVerifyChecker extends SquidCheck<Grammar> { |
|
|
|
for (AstNode expr:astNodeList) { |
|
|
|
for (AstNode expr:astNodeList) { |
|
|
|
lists.add(expr.getToken().getValue()); |
|
|
|
lists.add(expr.getToken().getValue()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(astNodeList.size() == 0){ |
|
|
|
if(astNodeList.size() == 0){ |
|
|
|
List<AstNode> descendants = astNode.getDescendants(CxxGrammarImpl.condition); |
|
|
|
List<AstNode> astNodes = astNode.getDescendants(CxxGrammarImpl.relationalExpression); |
|
|
|
for (AstNode desc:descendants) { |
|
|
|
for (AstNode as:astNodes) { |
|
|
|
lists.add(desc.getToken().getValue()); |
|
|
|
List<AstNode> children = as.getChildren(); |
|
|
|
|
|
|
|
for (AstNode chil:children) { |
|
|
|
|
|
|
|
lists.add(chil.getTokenValue()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|