[PATCH] D32845: [Analyzer] Iterator Checker - Part 4: Mismatched iterator checker for function parameters
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 15:59:06 PST 2017
NoQ added inline comments.
Herald added subscribers: a.sidorin, rnkovacs, szepet.
================
Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:340-358
+ const auto *Templ = Func->getPrimaryTemplate();
+ if (!Templ)
+ return;
+
+ const auto *TParams = Templ->getTemplateParameters();
+ const auto *TArgs = Func->getTemplateSpecializationArgs();
+
----------------
Could you add more comments on how this machinery works, probably with examples?
https://reviews.llvm.org/D32845
More information about the cfe-commits
mailing list