Page MenuHomePhabricator

chestnykh (Dmitriy Chestnykh)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 6 2023, 9:49 AM (11 w, 5 d)

Recent Activity

Jan 26 2023

chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

Ping

Jan 26 2023, 10:34 PM · Restricted Project, Restricted Project

Jan 16 2023

chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

Ping

Jan 16 2023, 11:14 AM · Restricted Project, Restricted Project

Jan 13 2023

chestnykh added a reviewer for D141192: [Clang] Fix warnings on bad shifts.: aaron.ballman.
Jan 13 2023, 4:05 AM · Restricted Project, Restricted Project

Jan 12 2023

chestnykh added a reviewer for D141192: [Clang] Fix warnings on bad shifts.: hokein.
Jan 12 2023, 4:05 AM · Restricted Project, Restricted Project

Jan 10 2023

chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

Ping, can someone review my changes?

Jan 10 2023, 12:30 AM · Restricted Project, Restricted Project

Jan 8 2023

chestnykh updated the diff for D141192: [Clang] Fix warnings on bad shifts..
Jan 8 2023, 9:05 AM · Restricted Project, Restricted Project
chestnykh updated the diff for D141192: [Clang] Fix warnings on bad shifts..
Jan 8 2023, 7:04 AM · Restricted Project, Restricted Project
chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

So it looks like in handleIntIntBinOp we do hit this code:

unsigned SA = (unsigned) RHS.getLimitedValue(LHS.getBitWidth()-1);
 if (SA != RHS) {
   Info.CCEDiag(E, diag::note_constexpr_large_shift)
     << RHS << E->getType() << LHS.getBitWidth();

So maybe we should figure out why we decide not to emit this diagnostic and fix it there.

We return true anyway and so the diagnostics are not printed. This is reached from a call to VerifyIntegerConstantExpression() IIRC.

Jan 8 2023, 5:39 AM · Restricted Project, Restricted Project
chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

I've modified handleIntIntBinOp so now it emits message about bad shift value.
DiagnoseBadShiftValues changes are also needed because handleIntIntBinOp cant properly cover for example the case we are not in c++11 mode.

Jan 8 2023, 5:35 AM · Restricted Project, Restricted Project
chestnykh updated the diff for D141192: [Clang] Fix warnings on bad shifts..
Jan 8 2023, 5:33 AM · Restricted Project, Restricted Project
chestnykh updated the diff for D141192: [Clang] Fix warnings on bad shifts..
Jan 8 2023, 5:17 AM · Restricted Project, Restricted Project

Jan 7 2023

chestnykh added a comment to D141192: [Clang] Fix warnings on bad shifts..

So it looks like in handleIntIntBinOp we do hit this code:

unsigned SA = (unsigned) RHS.getLimitedValue(LHS.getBitWidth()-1);
 if (SA != RHS) {
   Info.CCEDiag(E, diag::note_constexpr_large_shift)
     << RHS << E->getType() << LHS.getBitWidth();

So maybe we should figure out why we decide not to emit this diagnostic and fix it there.

Jan 7 2023, 10:17 AM · Restricted Project, Restricted Project
chestnykh requested review of D141192: [Clang] Fix warnings on bad shifts..
Jan 7 2023, 2:55 AM · Restricted Project, Restricted Project

Jan 6 2023

chestnykh updated the diff for D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 11:53 AM · Restricted Project, Restricted Project
chestnykh updated the summary of D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 11:52 AM · Restricted Project, Restricted Project
chestnykh removed reviewers for D141145: [fs] Prevent symlink destroying.: jakehehrlich, alexander-shaposhnikov, jhenderson.
Jan 6 2023, 11:49 AM · Restricted Project, Restricted Project
chestnykh changed the visibility for D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 11:47 AM · Restricted Project, Restricted Project
chestnykh updated the diff for D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 11:42 AM · Restricted Project, Restricted Project
chestnykh updated the diff for D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 11:34 AM · Restricted Project, Restricted Project
chestnykh requested review of D141145: [fs] Prevent symlink destroying..
Jan 6 2023, 10:02 AM · Restricted Project, Restricted Project