alexfh added inline comments.
================ Comment at: clang-tidy/modernize/MakeSmartPtrCheck.cpp:279 if (const auto *CE = New->getConstructExpr()) { - for (const auto *Arg : CE->arguments()) { - if (llvm::isa<CXXStdInitializerListExpr>(Arg)) { - return false; - } + if (!ast_matchers::match(findAll(cxxStdInitializerListExpr()), *CE, + CE->getConstructor()->getASTContext()) ---------------- I wonder whether this exception can be too broad, e.g. if the initializer list is a part of a more deeply nested expression inside the CXXConstructExpr? https://reviews.llvm.org/D37066 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits