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:
parent
91df71ab2e
commit
c510e7ad5b
2 changed files with 3 additions and 3 deletions
|
@ -169,7 +169,7 @@ abstract class FlowAnalyzer extends ASTGenericVisitor {
|
|||
return new ConditionalFlowInfo();
|
||||
}
|
||||
|
||||
protected RangeBasedForFlowInfo createEnhancedFor() {
|
||||
protected RangeBasedForFlowInfo createRangeBasedFor() {
|
||||
return new RangeBasedForFlowInfo();
|
||||
}
|
||||
|
||||
|
@ -614,7 +614,7 @@ abstract class FlowAnalyzer extends ASTGenericVisitor {
|
|||
}
|
||||
|
||||
public int leave(ICPPASTRangeBasedForStatement node) {
|
||||
RangeBasedForFlowInfo forInfo= createEnhancedFor();
|
||||
RangeBasedForFlowInfo forInfo= createRangeBasedFor();
|
||||
setFlowInfo(node, forInfo);
|
||||
forInfo.mergeDeclaration(getFlowInfo(node.getDeclaration()), fFlowContext);
|
||||
forInfo.mergeInitializerClause(getFlowInfo(node.getInitializerClause()), fFlowContext);
|
||||
|
|
|
@ -89,7 +89,7 @@ public class InputFlowAnalyzer extends FlowAnalyzer {
|
|||
FlowInfo paramInfo= getFlowInfo(node.getDeclaration());
|
||||
FlowInfo expressionInfo= getFlowInfo(node.getInitializerClause());
|
||||
FlowInfo actionInfo= getFlowInfo(node.getBody());
|
||||
RangeBasedForFlowInfo forInfo= createEnhancedFor();
|
||||
RangeBasedForFlowInfo forInfo= createRangeBasedFor();
|
||||
setFlowInfo(node, forInfo);
|
||||
// If the for statement is the outermost loop then we only have to consider
|
||||
// the action. The parameter and expression are only evaluated once.
|
||||
|
|
Loading…
Add table
Reference in a new issue