Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BinaryOperation for Boolean expressions in SE #5478

Closed
pavel-mikula-sonarsource opened this issue Mar 11, 2022 · 0 comments · Fixed by #5479
Closed

Support BinaryOperation for Boolean expressions in SE #5478

pavel-mikula-sonarsource opened this issue Mar 11, 2022 · 0 comments · Fixed by #5479
Assignees
Labels
Area: C# C# rules related issues. Area: CFG/SE CFG and SE related issues. Area: VB.NET VB.NET rules related issues.
Milestone

Comments

@pavel-mikula-sonarsource
Copy link
Contributor

Support basic BinaryOperations when both sides can be resolved to boolean constraints

var isTrue = true;
if(isTrue == true)
  // Visit
else
  // Unreachable

Operators: ==, !=, =, <>, &&, ||, &, |, AndAlso, OrElse, Xor, ^

@pavel-mikula-sonarsource pavel-mikula-sonarsource added Type: Improvement Area: CFG/SE CFG and SE related issues. Area: VB.NET VB.NET rules related issues. Area: C# C# rules related issues. labels Mar 11, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource added this to the 8.37 milestone Mar 11, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource changed the title Support BinaryOperation for boolean expressions in SE Support BinaryOperation for Boolean expressions in SE Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C# C# rules related issues. Area: CFG/SE CFG and SE related issues. Area: VB.NET VB.NET rules related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants