[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 13 11:01:50 PST 2024
================
@@ -269,6 +472,23 @@ void BranchCloneCheck::check(const MatchFinder::MatchResult &Result) {
return;
}
+ if (const auto *IS = Result.Nodes.getNodeAs<IfStmt>("ifWithDescendantIf")) {
+ const Stmt *Then = IS->getThen();
+ if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Then)) {
+ if (!CS->body_empty()) {
----------------
5chmidti wrote:
These two `if` statements could be one
https://github.com/llvm/llvm-project/pull/114715
More information about the cfe-commits
mailing list