forked from OSchip/llvm-project
Adapt to CXXMethodDecl::getThisType change (NFC)
Summary: https://reviews.llvm.org/D56509 changed the API of the CXXMethodDecl::getThisType method. Adapt to the change (and re-apply clang-format) to fix the clang-tidy build. llvm-svn: 350916
This commit is contained in:
parent
64095fc07c
commit
eb139def3d
|
@ -50,9 +50,7 @@ static BasesVector getParentsByGrandParent(const CXXRecordDecl &GrandParent,
|
|||
// TypePtr is the nearest base class to ThisClass between ThisClass and
|
||||
// GrandParent, where MemberDecl is overridden. TypePtr is the class the
|
||||
// check proposes to fix to.
|
||||
const Type *TypePtr =
|
||||
ActualMemberDecl->getThisType(ActualMemberDecl->getASTContext())
|
||||
.getTypePtr();
|
||||
const Type *TypePtr = ActualMemberDecl->getThisType().getTypePtr();
|
||||
const CXXRecordDecl *RecordDeclType = TypePtr->getPointeeCXXRecordDecl();
|
||||
assert(RecordDeclType && "TypePtr is not a pointer to CXXRecordDecl!");
|
||||
if (RecordDeclType->getCanonicalDecl()->isDerivedFrom(&GrandParent))
|
||||
|
|
Loading…
Reference in New Issue