[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:17:37 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:

For my addition, reusing standard facilities like `Stmt::Profile()` fails because Clang doesn't reliably unique `NestedNameSpecifiers` containing sugared types

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


More information about the cfe-commits mailing list