[clang-tools-extra] [clang-tidy] detect arithmetic operations within member list initialization in modernize-use-default-member-init check (PR #129370)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Sat Mar 8 19:08:44 PST 2025


================
@@ -159,6 +159,12 @@ static bool sameValue(const Expr *E1, const Expr *E2) {
   case Stmt::UnaryOperatorClass:
     return sameValue(cast<UnaryOperator>(E1)->getSubExpr(),
                      cast<UnaryOperator>(E2)->getSubExpr());
+  case Stmt::BinaryOperatorClass: {
----------------
HerrCai0907 wrote:

Should we compare BinaryOp here?

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


More information about the cfe-commits mailing list