[PATCH] D28023: [analyzer] Fix leak false positives before no-return functions caused by incomplete analyses.

Aleksei Sidorin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 21 07:59:39 PST 2016


a.sidorin added a comment.

Looks useful and mostly good. A small advice is in inline comments.



================
Comment at: lib/StaticAnalyzer/Core/BugReporter.cpp:3294
+  // Find the node's current statement in the CFG.
+  // FIXME: CFG lookup should be made easier.
+  const CFG &Cfg = N->getCFG();
----------------
Maybe it is possible to use `CFGStmtMap` for search?


https://reviews.llvm.org/D28023





More information about the cfe-commits mailing list