[PATCH] D61134: [Analyzer] Iterator Checkers - Do an early return after handling calls

Balogh, Ádám via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 08:44:27 PDT 2019


baloghadamsoftware created this revision.
baloghadamsoftware added reviewers: NoQ, Szelethus.
baloghadamsoftware added a project: clang.
Herald added subscribers: Charusso, gamesh411, donat.nagy, mikhail.ramalho, a.sidorin, rnkovacs, szepet.

This patch is more of a fix than a real improvement: in `checkPostCall()` we should return immediately after finding the right call and handling it. This both saves unnecessary processing and double-handling calls by mistake.


Repository:
  rC Clang

https://reviews.llvm.org/D61134

Files:
  lib/StaticAnalyzer/Checkers/IteratorChecker.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61134.196641.patch
Type: text/x-patch
Size: 5418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190425/396bcc89/attachment.bin>


More information about the cfe-commits mailing list