takuto.ikuta added inline comments.
================ Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:357 + return; + } else if (isEndCall(Func)) { handleEnd(C, OrigExpr, Call.getReturnValue(), ---------------- We cannot use else after return? http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return ================ Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:576 + auto &SymMgr = C.getSymbolManager(); + const auto oldOffset = Pos->getOffset(); + auto newOffset = ---------------- oldOffset -> OldOffset? same with L577, L580, L595, L596, L599 and so on. ================ Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:941 + return State; + } else { + const auto CData = CDataPtr->newBegin(Sym); ---------------- else after return? ================ Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:945 + } + } else { + const auto CData = ContainerData::fromBegin(Sym); ---------------- else after return too. ================ Comment at: lib/StaticAnalyzer/Checkers/IteratorChecker.cpp:1195 + Expr->getType()); + } else { + return LExpr->getLHS(); ---------------- else after return? https://reviews.llvm.org/D32642 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits