Issue |
130137
|
Summary |
[clang-tidy] "boost-use-to-string" does not provide diagnostic for a boolean argument
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
denzor200
|
```
std::cout << boost::lexical_cast<std::string>(100) << std::endl; // OK - clang tidy provides warnings for that
std::cout << boost::lexical_cast<std::string>(true) << std::endl; // BAD - silence
```
Look at this snippet to play: https://godbolt.org/z/qaGa3c5nj
Unlike replace of floating points it would never change the behavior([proof](https://godbolt.org/z/YrK1q3P8Y)), thus I don't understand why clang-tidy still doesn't suggest to convert `bool` via `std::to_string` function.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs