clang
8.0.0
|
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 be type II clones of each other, but it is too slow to efficiently handle large amounts of clones.
Definition at line 274 of file CloneDetection.h.
void RecursiveCloneTypeIIVerifyConstraint::constrain | ( | std::vector< CloneDetector::CloneGroup > & | Sequences | ) |
Definition at line 416 of file CloneDetection.cpp.
References areSequencesClones(), and clang::CloneConstraint::splitCloneGroups().