alexfh added a comment. Thank you for the patch! I'd like the original author to take a look at it, so just a couple of peanut gallery comments from me for now.
================ Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:51 @@ +50,3 @@ +static bool +isTriviallyConstructible(const ASTContext &Context, QualType Type) { + if (Type.isNull()) ---------------- I wonder whether some relevant parts of SemaExprCXX.cpp could be made reusable so that you don't have to completely reimplement those. ================ Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:56 @@ +55,3 @@ + if (Type->isArrayType()) + return isTriviallyConstructible(Context, + Context.getBaseElementType(Type)); ---------------- Please clang-format the code. http://reviews.llvm.org/D18584 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits