Issue 242838
Summary [clang-tidy] readability-simplify-boolean-expr incorrect fix on sideeffect on LHS side of Disjunction operator and conjunction operator
Labels clang-tidy
Assignees
Reporter Abhay13332
    ```c
bool isCollapsing();
void testFunc(){
  
      if (isCollapsing()|| true) {
 }
}
``` converted to 
```c
bool isCollapsing();
void testFunc(){

 if (true) {
    }
}
```
here  isCollapsing is not defined in file so it should not remove isCollapsing as it might have sideeffects.
same issue with disjunction
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to