No warning on shifted boolean expression (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

llvm / llvm-project Public

Additional navigation options

New issue

New issue

Closed

#127336

Closed

No warning on shifted boolean expression

#28334

#127336

Labels

awaiting-reviewHas pending Phabricator reviewbugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzergood first issuehttps://github.com/llvm/llvm-project/contribute

@arsenm

Description

@arsenm

arsenm

opened

on Jun 1, 2016

Bugzilla Link 27960
Version unspecified
OS All
CC @hfinkel,@zygoloid,@Weverything,@seanm

Extended Description

Code such as this produces no warning

void bar(int x) { if ((x == 0) >> 3) {

}

}

Discovered from problem fixed in r271356

Metadata

Metadata

Assignees

No one assigned

Labels

awaiting-reviewHas pending Phabricator reviewbugzillaIssues migrated from bugzillaclang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzergood first issuehttps://github.com/llvm/llvm-project/contribute

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions