Hi LLVM developers,
CloneChecker is very useful:
- Potential copy-paste error; did you really mean to use 'track' here? screenshot
- Duplicate code detected screenshot
It is able to detect Copy-paste issue acts as Coverity scan!
But too much False Positives! screenshot for Qt based project, for example, k3b so I simply add a filter for Qt Meta-Object Compiler moc_XXX.cpp please review my patch, give me some advice, thanks a lot!
Regards,
Leslie Zhai
You could just use CloneConstraint::filterGroups() instead of doing your own loop and erasing.