Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
30 | 2 | 2 | 0.985 | iteration_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 30 | 3677 | InclusionConstraintGraph/Graph.h |
2 | 30 | 3708 | InclusionConstraintGraph/Graph.h |
| ||||
// mark parameters and result of marked named functions do { for (MapNamedEntitiesToNodes::Iterator iterator = m_named_functions_to_nodes.Begin(); iterator != m_named_functions_to_nodes.End(); ++iterator) { if (iterator.GetNode()->GetNodeNumber() != 0) { const SequenceOfNodes ¶meters = iterator.GetNode()->GetFunctionParameters(); for (std::size_t p=0; p <parameters.Size();p++) { if (parameters[p]->GetNodeNumber() == 0) { number_of_nodes++; parameters[p]->SetNodeNumber(number_of_nodes); parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionVariadicParameter()) { Node *variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter(); if (variadic_parameter->GetNodeNumber() == 0) { number_of_nodes++; variadic_parameter->SetNodeNumber(number_of_nodes); variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionResult()) { Node *result = iterator.GetNode()->GetFunctionResult(); if (result->GetNodeNumber() == 0) { number_of_nodes++; result->SetNodeNumber(number_of_nodes); result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } } } } while ( 0); |
| ||||
// mark parameters and result of marked anonymous functions do { for (MapTrackingNumbersToNodes::Iterator iterator = m_anonymous_functions_to_nodes.Begin(); iterator != m_anonymous_functions_to_nodes.End(); ++iterator) { if (iterator.GetNode()->GetNodeNumber() != 0) { const SequenceOfNodes ¶meters = iterator.GetNode()->GetFunctionParameters(); for (std::size_t p=0; p <parameters.Size();p++) { if (parameters[p]->GetNodeNumber() == 0) { number_of_nodes++; parameters[p]->SetNodeNumber(number_of_nodes); parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionVariadicParameter()) { Node *variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter(); if (variadic_parameter->GetNodeNumber() == 0) { number_of_nodes++; variadic_parameter->SetNodeNumber(number_of_nodes); variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionResult()) { Node *result = iterator.GetNode()->GetFunctionResult(); if (result->GetNodeNumber() == 0) { number_of_nodes++; result->SetNodeNumber(number_of_nodes); result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } } } } while ( 0); |
| |||
// mark parameters and result of marked anonymous functions // mark parameters and result of marked named functions do { for ([[#variablea89a040]]::Iterator iterator = [[#variablea899f80]].Begin(); iterator != [[#variablea899f80]].End(); ++iterator) { if (iterator.GetNode()->GetNodeNumber() != 0) { const SequenceOfNodes ¶meters = iterator.GetNode()->GetFunctionParameters(); for (std::size_t p = 0; p < parameters.Size(); p++) { if (parameters[p]->GetNodeNumber() == 0) { number_of_nodes++; parameters[p]->SetNodeNumber(number_of_nodes); parameters[p]->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionVariadicParameter()) { Node * variadic_parameter = iterator.GetNode()->GetFunctionVariadicParameter(); if (variadic_parameter->GetNodeNumber() == 0) { number_of_nodes++; variadic_parameter->SetNodeNumber(number_of_nodes); variadic_parameter->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } if (iterator.GetNode()->HasFunctionResult()) { Node * result = iterator.GetNode()->GetFunctionResult(); if (result->GetNodeNumber() == 0) { number_of_nodes++; result->SetNodeNumber(number_of_nodes); result->SetAuxiliaryBorder(Node::IsAuxiliaryBorder); } } } } } while (0); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a89a040]] | MapTrackingNumbersToNodes |
1 | 2 | [[#a89a040]] | MapNamedEntitiesToNodes |
2 | 1 | [[#a899f80]] | m_anonymous_functions_to_nodes |
2 | 2 | [[#a899f80]] | m_named_functions_to_nodes |