Home
last modified time | relevance | path

Searched refs:DerivedDecl (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSlicingCheck.cpp75 const Expr &Call, const CXXRecordDecl &DerivedDecl, in diagnoseSlicedOverriddenMethods() argument
77 if (DerivedDecl.getCanonicalDecl() == BaseDecl.getCanonicalDecl()) in diagnoseSlicedOverriddenMethods()
79 for (const auto *Method : DerivedDecl.methods()) { in diagnoseSlicedOverriddenMethods()
87 << &DerivedDecl << &BaseDecl << Method; in diagnoseSlicedOverriddenMethods()
91 for (const auto &Base : DerivedDecl.bases()) { in diagnoseSlicedOverriddenMethods()
102 const auto *DerivedDecl = in check() local
106 assert(DerivedDecl != nullptr); in check()
118 diagnoseSlicedOverriddenMethods(*Call, *DerivedDecl, *BaseDecl); in check()
124 DerivedDecl->getASTContext().getASTRecordLayout(DerivedDecl); in check()
130 << DerivedDecl << BaseDecl << static_cast<int>(StateSize.getQuantity()); in check()
H A DSlicingCheck.h36 const CXXRecordDecl &DerivedDecl,
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp3084 const CXXRecordDecl *DerivedDecl, in HandleLValueBase() argument
3089 return HandleLValueDirectBase(Info, E, Obj, DerivedDecl, BaseDecl); in HandleLValueBase()
3096 DerivedDecl = D.MostDerivedType->getAsCXXRecordDecl(); in HandleLValueBase()
3097 if (!CastToDerivedClass(Info, E, Obj, DerivedDecl, D.MostDerivedPathLength)) in HandleLValueBase()
3101 if (DerivedDecl->isInvalidDecl()) return false; in HandleLValueBase()
3102 const ASTRecordLayout &Layout = Info.Ctx.getASTRecordLayout(DerivedDecl); in HandleLValueBase()