[clang-tools-extra] [clang-tidy] Fix false positive in misc-redundant-expression with type aliases (PR #198085)
Peiqi Li via cfe-commits
cfe-commits at lists.llvm.org
Sat May 30 23:16:58 PDT 2026
================
@@ -44,6 +45,328 @@ static bool incrementWithoutOverflow(const APSInt &Value, APSInt &Result) {
return Value < Result;
}
+static bool areEquivalentExpr(const Expr *Left, const Expr *Right);
----------------
voyager-jhk wrote:
The `areEquivalentExpr` is actually preexisting in this check, and this introduces mutual recursion because template arguments can contain expressions.
https://github.com/llvm/llvm-project/pull/198085
More information about the cfe-commits
mailing list