Issue |
143328
|
Summary |
[clang-tidy] "readability-implicit-bool-conversion" - should catch conversions that occur in a template function
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
denzor200
|
```
template<typename T1, typename T2>
bool compare(const T1& a, const T2& b) {
return a == b ; // BAD - no warning
}
int main() {
int a = 0;
bool b = false;
compare(a, b);
return 0;
}
```
The full snippet here: https://godbolt.org/z/Yvs77cjej
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs