Searched refs:CloneGroups (Results 1 – 4 of 4) sorted by relevance
/external/llvm-project/clang/unittests/Analysis/ |
D | CloneDetectionTest.cpp | 37 void constrain(std::vector<CloneDetector::CloneGroup> &CloneGroups) { in constrain() argument 39 CloneGroups, [](const StmtSequence &A, const StmtSequence &B) { in constrain() 69 std::vector<CloneDetector::CloneGroup> CloneGroups; in TEST() local 70 Detector.findClones(CloneGroups, NoBarFunctionConstraint(), in TEST() 76 ASSERT_EQ(CloneGroups.size(), 1u); in TEST() 77 ASSERT_EQ(CloneGroups.front().size(), 2u); in TEST() 79 for (auto &Clone : CloneGroups.front()) { in TEST() 87 CloneGroups.clear(); in TEST() 89 Detector.findClones(CloneGroups, RecursiveCloneTypeIIHashConstraint(), in TEST() 93 ASSERT_EQ(CloneGroups.size(), 1u); in TEST() [all …]
|
/external/llvm-project/clang/include/clang/Analysis/ |
D | CloneDetection.h | 185 static void constrainClones(std::vector<CloneGroup> &CloneGroups, T C) { in constrainClones() argument 186 C.constrain(CloneGroups); in constrainClones() 195 static void constrainClones(std::vector<CloneGroup> &CloneGroups, T1 C, in constrainClones() argument 197 constrainClones(CloneGroups, C); in constrainClones() 198 constrainClones(CloneGroups, ConstraintList...); in constrainClones() 236 std::vector<CloneDetector::CloneGroup> &CloneGroups, in filterGroups() argument 238 CloneGroups.erase( in filterGroups() 239 std::remove_if(CloneGroups.begin(), CloneGroups.end(), Filter), in filterGroups() 240 CloneGroups.end()); in filterGroups() 250 std::vector<CloneDetector::CloneGroup> &CloneGroups, [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | CloneChecker.cpp | 49 std::vector<CloneDetector::CloneGroup> &CloneGroups) const; 55 std::vector<CloneDetector::CloneGroup> &CloneGroups) const; 109 std::vector<CloneDetector::CloneGroup> &CloneGroups) const { in reportClones() 114 for (const CloneDetector::CloneGroup &Group : CloneGroups) { in reportClones() 130 std::vector<CloneDetector::CloneGroup> &CloneGroups) const { in reportSuspiciousClones() 133 for (const CloneDetector::CloneGroup &Group : CloneGroups) { in reportSuspiciousClones()
|
/external/llvm-project/clang/lib/Analysis/ |
D | CloneDetection.cpp | 466 std::vector<CloneDetector::CloneGroup> &CloneGroups) { in constrain() argument 468 CloneGroups, [](const StmtSequence &A, const StmtSequence &B) { in constrain() 476 std::vector<CloneDetector::CloneGroup> &CloneGroups, in splitCloneGroups() argument 480 for (auto &HashGroup : CloneGroups) { in splitCloneGroups() 523 CloneGroups = Result; in splitCloneGroups()
|