hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land.
Thanks for fixing it. It looks much simpler than I thought originally. Looks good, just a few nits. ================ Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:246 + ASTContext *Ctx) { + std::function<const Expr *(const Expr *)> SkipParensParents = + [&](const Expr *E) { ---------------- nit: I'd use `auto` to avoid this long type name, the type is clear to me, it is a lambda function. ================ Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:250 + if (const Expr *Parent = Node.get<ParenExpr>()) + return SkipParensParents(Parent); + } ---------------- nit: we can easily avoid the recursive call by using while here, I think. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52989 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits