class RecursiveCloneTypeIIHashConstraint
Declaration
class RecursiveCloneTypeIIHashConstraint { /* full declaration omitted */ };
Description
This constraint moves clones into clone groups of type II via hashing. Clones with different hash values are moved into separate clone groups. Collisions are possible, and this constraint does nothing to address this them. Add the slower RecursiveCloneTypeIIVerifyConstraint later in the constraint chain, not necessarily immediately, to eliminate hash collisions through a more detailed analysis.
Declared at: clang/include/clang/Analysis/CloneDetection.h:254
Method Overview
- public void constrain(std::vector<CloneDetector::CloneGroup> & Sequences)
Methods
ΒΆvoid constrain(
std::vector<CloneDetector::CloneGroup>&
Sequences)
void constrain(
std::vector<CloneDetector::CloneGroup>&
Sequences)
Declared at: clang/include/clang/Analysis/CloneDetection.h:256
Parameters
- std::vector<CloneDetector::CloneGroup>& Sequences