================ @@ -117,18 +119,18 @@ void UseIntegerSignComparisonCheck::check( if (BinaryOp == nullptr) return; - auto OpCode = BinaryOp->getOpcode(); - const auto *LHS = BinaryOp->getLHS()->IgnoreParenImpCasts(); - const auto *RHS = BinaryOp->getRHS()->IgnoreParenImpCasts(); - if (LHS == nullptr || RHS == nullptr) + const BinaryOperator::Opcode OpCode = BinaryOp->getOpcode(); + const auto *Lhs = BinaryOp->getLHS()->IgnoreParenImpCasts(); ---------------- HerrCai0907 wrote:
I am not sure whether is worth to change from LHS to Lhs LHS is more wide used variable name in LLVM then Lhs. In clang source code, full uppercase abbreviation is also wide used. https://github.com/llvm/llvm-project/pull/113144 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits