Skip to content

Lints for ambiguous ! on the left hand side of a bitwise operation#265

Merged
SpaceManiac merged 5 commits intoSpaceManiac:masterfrom
ZeWaka:faulty-bitmath
May 18, 2021
Merged

Lints for ambiguous ! on the left hand side of a bitwise operation#265
SpaceManiac merged 5 commits intoSpaceManiac:masterfrom
ZeWaka:faulty-bitmath

Conversation

@ZeWaka
Copy link
Copy Markdown
Contributor

@ZeWaka ZeWaka commented Apr 29, 2021

title, essentially
Puts some helpful hints in order of likelihood. Could be intended to be: !(x & y) or !x && y or ~x & y

Fulfils https://github.com/SpaceManiac/SpacemanDMM/projects/1#card-37357276

Expression::BinaryOp { op, lhs, rhs } => {
let lty = self.visit_expression(location, lhs, None, local_vars);
let rty = self.visit_expression(location, rhs, None, local_vars);
match op {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could put this before the visitation above as well.

@SpaceManiac SpaceManiac merged commit f81223b into SpaceManiac:master May 18, 2021
@SpaceManiac SpaceManiac added this to the suite v1.7 milestone May 19, 2021
@ZeWaka ZeWaka deleted the faulty-bitmath branch January 17, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants