[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 15 22:13:06 PST 2024
================
@@ -102,6 +102,210 @@ void BranchCloneCheck::registerMatchers(MatchFinder *Finder) {
this);
Finder->addMatcher(switchStmt().bind("switch"), this);
Finder->addMatcher(conditionalOperator().bind("condOp"), this);
+ Finder->addMatcher(ifStmt(hasDescendant(ifStmt())).bind("ifWithDescendantIf"),
----------------
HerrCai0907 wrote:
`hasDescendant` will match lots of unrelated cases which will slow the speed. move the later check to here
https://github.com/llvm/llvm-project/pull/114715
More information about the cfe-commits
mailing list