-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer
Description
| Bugzilla Link | 24283 |
| Version | unspecified |
| OS | Windows NT |
| Reporter | LLVM Bugzilla Contributor |
| CC | @DougGregor,@Weverything |
Extended Description
See r243241 for reference. http://llvm.org/viewvc/llvm-project?view=revision&revision=243241
% cat shift.c#include <sys/types.h>
static const uint32_t kFlagSync = 2 << 30;
static const uint32_t kFlagSync2 = 1 << 35;% ./clang shift.c -Wshift-overflow
shift.c:4:38: warning: shift count >= width of type [-Wshift-count-overflow]
static const uint32_t kFlagSync2 = 1 << 35;Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerNew/improved warning or error message in Clang, but not in clang-tidy or static analyzer