Eugene.Zelenko added inline comments.
================ Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:76 + for (const auto &I : Node->bases()) { + const RecordType *Ty = I.getType()->getAs<RecordType>(); + assert(Ty && "RecordType of base class is unknown"); ---------------- Could be const auto *. ================ Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:98 +void MultipleInheritanceCheck::check(const MatchFinder::MatchResult &Result) { + if (const CXXRecordDecl *D = + Result.Nodes.getNodeAs<CXXRecordDecl>("decl")) { ---------------- Could be const auto *. ================ Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:104 + for (const auto &I : D->bases()) { + const RecordType *Ty = I.getType()->getAs<RecordType>(); + assert(Ty && "RecordType of base class is unknown"); ---------------- Could be const auto *. ================ Comment at: clang-tidy/fuchsia/MultipleInheritanceCheck.cpp:106 + assert(Ty && "RecordType of base class is unknown"); + CXXRecordDecl *Base = cast<CXXRecordDecl>(Ty->getDecl()->getDefinition()); + if (!MultipleInheritanceCheck::isInterface(Base)) ---------------- Could be const auto *. https://reviews.llvm.org/D40580 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits