================ @@ -138,9 +138,9 @@ void UseIntegerSignComparisonCheck::check( return; const Expr *SubExprLHS = nullptr; const Expr *SubExprRHS = nullptr; - SourceRange R1 = SourceRange(LHS->getBeginLoc()); - SourceRange R2 = SourceRange(BinaryOp->getOperatorLoc()); - SourceRange R3 = SourceRange(Lexer::getLocForEndOfToken( + SourceRange R1(LHS->getBeginLoc()); ---------------- flovent wrote:
This check correctly suggest `auto R1 = SourceRange(LHS->getBeginLoc());` here, but i think directly calling ctor is better here. https://github.com/llvm/llvm-project/pull/157468 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits