Issue 71848
Summary [clang-tidy] `readability-implicit-bool-conversion` suggests invalid fix
Labels clang-tidy
Assignees
Reporter felix642
    When running and applying the suggestions of readability-implicit-bool-conversion on the following code:
```
int main()
{
    bool foo;
 return( foo );
}
```

We get the following result:

```

int main()
{
    bool foo;
 returnstatic_cast<int>(( foo ));
}
```

godbolt: https://godbolt.org/z/bzbbbevsE
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to