diff options
author | Yi Kong <yikong@google.com> | 2019-03-02 12:49:04 -0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-03-02 12:49:04 -0800 |
commit | 68e4cb5128eb90dc5114b7ec797d3e1b98d4cbf3 (patch) | |
tree | 049450ed738b4bdf56e8e8a17103b80c9b7b9dd9 /clang-tidy/bugprone/ParentVirtualCallCheck.cpp | |
parent | 7a46d0622fd92e3557dbe1b651deca318242a636 (diff) | |
parent | 80b6bd266d30d1fbc12b8cf16db684365492c0e6 (diff) | |
download | clang-tools-extra-master.tar.gz |
Merge 80b6bd26 for LLVM update to 353983HEADmastermainllvm-r353983
Change-Id: I725a25e633fed57b4065f7c34243b468a5ab125c
Diffstat (limited to 'clang-tidy/bugprone/ParentVirtualCallCheck.cpp')
-rwxr-xr-x | clang-tidy/bugprone/ParentVirtualCallCheck.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang-tidy/bugprone/ParentVirtualCallCheck.cpp b/clang-tidy/bugprone/ParentVirtualCallCheck.cpp index 919a6910..b2f51426 100755 --- a/clang-tidy/bugprone/ParentVirtualCallCheck.cpp +++ b/clang-tidy/bugprone/ParentVirtualCallCheck.cpp @@ -1,9 +1,8 @@ //===--- ParentVirtualCallCheck.cpp - clang-tidy---------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -50,9 +49,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)) |