1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Renamed the createRangeBasedFor method for clarity.

This commit is contained in:
Sergey Prigogin 2012-03-13 17:53:48 -07:00
parent 91df71ab2e
commit c510e7ad5b
2 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ abstract class FlowAnalyzer extends ASTGenericVisitor {
return new ConditionalFlowInfo(); return new ConditionalFlowInfo();
} }
protected RangeBasedForFlowInfo createEnhancedFor() { protected RangeBasedForFlowInfo createRangeBasedFor() {
return new RangeBasedForFlowInfo(); return new RangeBasedForFlowInfo();
} }
@ -614,7 +614,7 @@ abstract class FlowAnalyzer extends ASTGenericVisitor {
} }
public int leave(ICPPASTRangeBasedForStatement node) { public int leave(ICPPASTRangeBasedForStatement node) {
RangeBasedForFlowInfo forInfo= createEnhancedFor(); RangeBasedForFlowInfo forInfo= createRangeBasedFor();
setFlowInfo(node, forInfo); setFlowInfo(node, forInfo);
forInfo.mergeDeclaration(getFlowInfo(node.getDeclaration()), fFlowContext); forInfo.mergeDeclaration(getFlowInfo(node.getDeclaration()), fFlowContext);
forInfo.mergeInitializerClause(getFlowInfo(node.getInitializerClause()), fFlowContext); forInfo.mergeInitializerClause(getFlowInfo(node.getInitializerClause()), fFlowContext);

View file

@ -89,7 +89,7 @@ public class InputFlowAnalyzer extends FlowAnalyzer {
FlowInfo paramInfo= getFlowInfo(node.getDeclaration()); FlowInfo paramInfo= getFlowInfo(node.getDeclaration());
FlowInfo expressionInfo= getFlowInfo(node.getInitializerClause()); FlowInfo expressionInfo= getFlowInfo(node.getInitializerClause());
FlowInfo actionInfo= getFlowInfo(node.getBody()); FlowInfo actionInfo= getFlowInfo(node.getBody());
RangeBasedForFlowInfo forInfo= createEnhancedFor(); RangeBasedForFlowInfo forInfo= createRangeBasedFor();
setFlowInfo(node, forInfo); setFlowInfo(node, forInfo);
// If the for statement is the outermost loop then we only have to consider // If the for statement is the outermost loop then we only have to consider
// the action. The parameter and expression are only evaluated once. // the action. The parameter and expression are only evaluated once.