zmodem wrote:
We're seeing another couple of false positives:
```
printf("%s", b ? "true" : "false");
```
and
```
constexpr char s[] = "foo";
printf("%s", s);
```
It would be nice if the warning didn't fire on those.
I also wonder if we should relax the "c_str() check" a little, to accommodate
custom string implementations. If something has a c_str() method, wouldn't it
be fair to assume that's going to be a null terminated string?
https://github.com/llvm/llvm-project/pull/173096
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits