clang 20.0.0git
|
This constraint moves clones into clone groups of type II by comparing them. 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 by comparing them.
Clones that aren't type II clones are moved into separate clone groups. In contrast to the RecursiveCloneTypeIIHashConstraint, all clones in a clone group are guaranteed to be type II clones of each other, but it is too slow to efficiently handle large amounts of clones.
Definition at line 265 of file CloneDetection.h.
void RecursiveCloneTypeIIVerifyConstraint::constrain | ( | std::vector< CloneDetector::CloneGroup > & | Sequences | ) |
Definition at line 410 of file CloneDetection.cpp.
References areSequencesClones(), and clang::CloneConstraint::splitCloneGroups().