[PATCH] D141192: [Clang] Add warnings on bad shifts inside enums.
Dmitriy Chestnykh via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 7 02:55:27 PST 2023
chestnykh created this revision.
chestnykh added a reviewer: MaskRay.
Herald added a subscriber: StephenFan.
Herald added a project: All.
chestnykh requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Those warnings were gone because DiagRuntimeBehavior
doesn't emit warnings in ConstantEvaluated case.
PR#59863
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141192
Files:
clang/lib/Sema/SemaExpr.cpp
clang/test/Sema/shift-count-negative.c
clang/test/Sema/shift-count-overflow.c
clang/test/Sema/shift-negative-value.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141192.487076.patch
Type: text/x-patch
Size: 6703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230107/a69c3089/attachment-0001.bin>
More information about the cfe-commits
mailing list