[clang] [clang] Emit bad shift warnings (PR #70307)

Budimir Aranđelović via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 03:43:54 PDT 2024


================
@@ -2805,7 +2805,7 @@ static bool handleIntIntBinOp(EvalInfo &Info, const Expr *E, const APSInt &LHS,
     unsigned SA = (unsigned) RHS.getLimitedValue(LHS.getBitWidth()-1);
     if (SA != RHS) {
       Info.CCEDiag(E, diag::note_constexpr_large_shift)
-        << RHS << E->getType() << LHS.getBitWidth();
+          << RHS << E->getType() << LHS.getBitWidth();
----------------
budimirarandjelovicsyrmia wrote:

Reverted changes. Just to mention that 'git clang-format' proposed spaces in this comment and comments below.

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


More information about the cfe-commits mailing list