gamesh411 accepted this revision. gamesh411 added inline comments. This revision is now accepted and ready to land.
================ Comment at: clang/lib/StaticAnalyzer/Checkers/IteratorModeling.cpp:530-532 const auto *Pos = getIteratorPosition(State, LHS); if (!Pos) return; ---------------- baloghadamsoftware wrote: > Szelethus wrote: > > I fear this might be a stupid question, but what's up with `5 + it`? Why > > does the LHS have to be the iterator? Am I missing something here? > There is nothing wrong with it, but it is not (yet) supported, because I > simply forgot. However I think it is much less common than `it + 5`. This > patch is just a fixit patch, so I try not to add new features here, just fix > existing ones. Good catch, we should definitely support that! I can even volunteer if you are ok with that. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D82385/new/ https://reviews.llvm.org/D82385 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits