balazske marked an inline comment as done.
balazske added a comment.

Currently priority of this change is lower than D78374 
<https://reviews.llvm.org/D78374>.
If a similar change is done a "escaped" stream state will be needed too.



================
Comment at: clang/test/Analysis/stream.c:11-13
+void check_feread_noopen(FILE *fp) {
+  fread(0, 0, 0, fp);
+}
----------------
NoQ wrote:
> What do these tests test?
There should be no warning about resource leak (file not closed). This may be 
not the best approach to show what the checker does. Some other detectable 
problem should be added to show that the functions are not ignored by the 
checker.
(I do not like that the buffer argument is 0 here, probably other checker 
should check this.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78280/new/

https://reviews.llvm.org/D78280



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to