[clang-tidy] False negative readability-redundant-casting with function pointer
Open
clang-tidy
false-negative
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
~~~c++
int f();
int g() {
int (*fp)() = (int(*)())f; // redundant cast
return fp();
}
~~~
https://godbolt.org/z/h8brsnq4z
Contributor guide
Assessment
This issue has not been assessed yet.