[PATCH] D32747: [Analyzer] Iterator Checker - Part 3: Invalidation check, first for (copy) assignments

Takuto Ikuta via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 5 08:20:17 PDT 2017


takuto.ikuta added inline comments.


================
Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:271
+  InvalidatedBugType.reset(
+      new BugType(this, "Iterator invalidated", "Misuse of STL APIs"));
+  InvalidatedBugType->setSuppressOnSink(true);
----------------
OK to use make_unique here?


https://reviews.llvm.org/D32747





More information about the cfe-commits mailing list