[clang] [clang] Emit bad shift warnings (PR #70307)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 26 06:05:30 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();
----------------
AaronBallman wrote:
FWIW, you should be using `clang-format-diff` so that you're only formatting the changes made in the PR: https://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting
https://github.com/llvm/llvm-project/pull/70307
More information about the cfe-commits
mailing list