|
clang
5.0.0
|
This class is a utility class that contains utility functions for building custom constraints. More...
#include "clang/Analysis/CloneDetection.h"
Static Public Member Functions | |
| static void | filterGroups (std::vector< CloneDetector::CloneGroup > &CloneGroups, std::function< bool(const CloneDetector::CloneGroup &)> Filter) |
| Removes all groups by using a filter function. More... | |
| static void | splitCloneGroups (std::vector< CloneDetector::CloneGroup > &CloneGroups, std::function< bool(const StmtSequence &, const StmtSequence &)> Compare) |
| Splits the given CloneGroups until the given Compare function returns true for all clones in a single group. More... | |
This class is a utility class that contains utility functions for building custom constraints.
Definition at line 419 of file CloneDetection.h.
|
inlinestatic |
Removes all groups by using a filter function.
| CloneGroups | The list of CloneGroups that is supposed to be filtered. |
| Filter | The filter function that should return true for all groups that should be removed from the list. |
Definition at line 427 of file CloneDetection.h.
Referenced by clang::MinComplexityConstraint::constrain(), clang::MinGroupSizeConstraint::constrain(), and clang::FilenamePatternConstraint::constrain().
|
static |
Splits the given CloneGroups until the given Compare function returns true for all clones in a single group.
| CloneGroups | A list of CloneGroups that should be modified. |
| Compare | The comparison function that all clones are supposed to pass. Should return true if and only if two clones belong to the same CloneGroup. |
Definition at line 438 of file CloneDetection.cpp.
References clang::Result.
Referenced by clang::MatchingVariablePatternConstraint::constrain().
1.8.6