Szelethus accepted this revision.
Szelethus added a comment.
This revision is now accepted and ready to land.
Please rerun the evaluation before commiting to confirm the results haven't
changed! Otherwise, LGTM.
================
Comment at: clang/test/Analysis/stream.c:89
void check_freopen_1(void) {
- FILE *f1 = freopen("foo.c", "r", (FILE *)0); // expected-warning {{Stream
pointer might be NULL}}
+ FILE *f1 = freopen("foo.c", "r", (FILE *)0); // Not reported by the stream
checker.
f1 = freopen(0, "w", (FILE *)0x123456); // Do not report this as error.
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137790/new/
https://reviews.llvm.org/D137790
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits