Let's describe accurately what the users can expect from the checker in
a direct way.
Also, add an example warning message.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/docs/analyzer/checkers.rst | ||
---|---|---|
322 | You are not wrong, this just comes across too negative, and, pardon me, but pointlessly negative. I'd just spin this as "The current implementation only warns if an std::string was constructed from a null pointer". | |
324 | ||
327 | I'd delete this as well. This should be implied by the documentation of the checker. |
clang/docs/analyzer/checkers.rst | ||
---|---|---|
322 | Hm, right. |
Comment Actions
Maybe we should change the name of this checker to NullConstructedString or something, instead of piling even more different kinds of warnings into it in the future. Or maybe not. In any case, the patch LGTM!
You are not wrong, this just comes across too negative, and, pardon me, but pointlessly negative. I'd just spin this as "The current implementation only warns if an std::string was constructed from a null pointer".