clang 20.0.0git
|
This constraint moves clones into clone groups of type II via hashing. More...
#include "clang/Analysis/CloneDetection.h"
Public Member Functions | |
void | constrain (std::vector< CloneDetector::CloneGroup > &Sequences) |
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.
Definition at line 254 of file CloneDetection.h.
void RecursiveCloneTypeIIHashConstraint::constrain | ( | std::vector< CloneDetector::CloneGroup > & | Sequences | ) |
Definition at line 350 of file CloneDetection.cpp.
References clang::Result, and saveHash().