[clang][Analyzer] Track null stream argument in alpha.unix.Stream .
authorBalázs Kéri <1.int32@gmail.com>
Tue, 22 Jun 2021 08:25:55 +0000 (10:25 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Tue, 22 Jun 2021 09:16:56 +0000 (11:16 +0200)
commitd7227a5bc718940fa9bf90ba443e1dff6ded68cc
tree3780eb3282a383f0213efefef50b8c7244862b35
parent060208b4c8b78b2456b8440d9597c9f584676bf4
[clang][Analyzer] Track null stream argument in alpha.unix.Stream .

The checker contains check for passing a NULL stream argument.
This change should make more easy to identify where the passed pointer
becomes NULL.

Reviewed By: NoQ

Differential Revision: https://reviews.llvm.org/D104640
clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
clang/test/Analysis/stream-note.c