[clang] [clang-tools-extra] [analyzer] Remove alpha.core.IdenticalExpr Checker (PR #114715)

DonĂ¡t Nagy via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 4 07:56:25 PST 2024


NagyDonat wrote:

> I did take the cases one by one from identical-expressions.cpp to the tidy checks and noticed one pattern. It looks to me like identical expressions utilizing floats were excluded in the tidy checks but found in the static analysis check. Do you want to retain that through improvements in misc-redundant-expression, or leave that marked as FIXME? I'm happy to take a look at an improvement like that.

If it's not too difficult, then please improve the tidy checks to cover everything that was covered by the static analyzer checker that we want to remove. (Obviously this doesn't have a major practical importance as I assume that practically nobody used this alpha checker, but it's still nice to say that we preserve every feature.)

_(Disclaimer: if you think that the analyzer-only features happen to be buggy and/or completely useless, then don't port them.)_

If the changes are complex and you want to create several separate commits, then I think the natural commit order would be (1) adding the new features in tidy and then (2) removing the analyzer checker in a follow-up commit. However, I'd guess that it's reasonable to do these all in a single commit.

https://github.com/llvm/llvm-project/pull/114715


More information about the cfe-commits mailing list