[PATCH] D137790: [clang][analyzer] Remove report of null stream from StreamChecker.

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 06:38:41 PST 2023


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



More information about the cfe-commits mailing list