clang
9.0.0
|
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 262 of file CloneDetection.h.
void RecursiveCloneTypeIIHashConstraint::constrain | ( | std::vector< CloneDetector::CloneGroup > & | Sequences | ) |
Definition at line 351 of file CloneDetection.cpp.
References i, clang::Result, and saveHash().