The checker contains check for passing a NULL stream argument.
This change should make more easy to identify where the passed pointer
becomes NULL.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Yes please!
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp | ||
---|---|---|
838 | Stream pointer *is* null. There's no doubt about that. Path notes should look like one big complete sentence: "Assuming pointer value is null on line 83, ... stream pointer This isn't part of this patch so I'm just spreading awareness^^ |
Comment Actions
Thanks for the quick accept.
The goal is to make this checker non-alpha.
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp | ||
---|---|---|
838 | I do not like the messages in this checker but plan to improve it later. I observed that the last . character is removed from the messages, they can be like one sentence but multiple sentences. |
Stream pointer *is* null. There's no doubt about that.
Path notes should look like one big complete sentence: "Assuming pointer value is null on line 83, ... stream pointer
might beis null on line 88".This isn't part of this patch so I'm just spreading awareness^^