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