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 | cc3cc2639e91f349b9094b59a3bbc3632aca392d (patch) | |
tree | ef8c8319fbf32aafc2ce8cec92f570a2d18f0268 | |
parent | 4a1dff99063285858ff9d837db30d65e00f0501f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@350916 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | clang-tidy/bugprone/ParentVirtualCallCheck.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang-tidy/bugprone/ParentVirtualCallCheck.cpp b/clang-tidy/bugprone/ParentVirtualCallCheck.cpp index 919a6910..a5293b15 100755 --- a/clang-tidy/bugprone/ParentVirtualCallCheck.cpp +++ b/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)) |