| Issue | 170476 |
|---|---|
| Summary | [clang-tidy] False negative readability-redundant-casting with function pointer |
| Labels | clang-tidy |
| Assignees | |
| Reporter | chrchr-github |
~~~c++
int f();
int g() {
int (*fp)() = (int(*)())f; // redundant cast
return fp();
}
~~~
https://godbolt.org/z/h8brsnq4z
_______________________________________________ llvm-bugs mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs
