[PATCH] D81407: [Analyzer][StreamChecker] Add note tags for file opening.

Kristóf Umann via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 17 03:44:50 PDT 2020


Szelethus accepted this revision.
Szelethus marked 2 inline comments as done.
Szelethus added a comment.
This revision is now accepted and ready to land.

Yay! Getting so close to enabling this by default. I'm a big fan of your work on this checker.



================
Comment at: clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp:378
+      if (BR.isInteresting(StreamSym) &&
+          CheckerName == BR.getBugType().getCheckerName())
+        return Message;
----------------
I think is is going to be good enough until we automate things.


================
Comment at: clang/test/Analysis/stream.c:1
-// RUN: %clang_analyze_cc1 -analyzer-checker=alpha.unix.Stream -analyzer-store region -verify %s
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,alpha.unix.Stream -verify %s
 
----------------
Nice catch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81407





More information about the cfe-commits mailing list