alexfh added inline comments. ================ Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:31 @@ +30,3 @@ +// Convenience utility to get a RecordDecl from a QualType. +const RecordDecl *getCanonicalRecordDecl(const QualType &Type) { + if (const auto *RT = Type.getCanonicalType()->getAs<RecordType>()) ---------------- Is `getCanonicalType()` important here? Did you try using `QualType::getAsCXXRecordDecl()`?
http://reviews.llvm.org/D19993 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits