diff options
author | Brian Gesiak <modocache@gmail.com> | 2019-01-11 02:12:31 +0000 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2019-01-11 02:12:31 +0000 |
commit | eb139def3d9b06b9c477148a74d5cc7dedecc3f5 (patch) | |
tree | 8cdd585436e05c40ad3b11e454dbf1798ad716fd | |
parent | 64095fc07c737333f5bab96f2998d54de08a8251 (diff) | |
download | bcm5719-llvm-eb139def3d9b06b9c477148a74d5cc7dedecc3f5.tar.gz bcm5719-llvm-eb139def3d9b06b9c477148a74d5cc7dedecc3f5.zip |
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
-rwxr-xr-x | clang-tools-extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp b/clang-tools-extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp index 919a6910f75..a5293b15a7e 100755 --- a/clang-tools-extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp +++ b/clang-tools-extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp @@ -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)) |