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 /clang-tools-extra | |
parent | Remember to instantiate explicit template argument lists in a friend (diff) | |
download | llvm-project-eb139def3d9b06b9c477148a74d5cc7dedecc3f5.tar.gz llvm-project-eb139def3d9b06b9c477148a74d5cc7dedecc3f5.tar.bz2 llvm-project-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
Diffstat (limited to 'clang-tools-extra')
-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 919a6910f756..a5293b15a7eb 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)) |