Deleted Added
sdiff udiff text old ( 199482 ) new ( 200583 )
full compact
1//===------ CXXInheritance.cpp - C++ Inheritance ----------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 76 unchanged lines hidden (view full) ---

85bool CXXRecordDecl::isDerivedFrom(CXXRecordDecl *Base, CXXBasePaths &Paths) const {
86 if (getCanonicalDecl() == Base->getCanonicalDecl())
87 return false;
88
89 Paths.setOrigin(const_cast<CXXRecordDecl*>(this));
90 return lookupInBases(&FindBaseClass, Base->getCanonicalDecl(), Paths);
91}
92
93bool CXXRecordDecl::lookupInBases(BaseMatchesCallback *BaseMatches,
94 void *UserData,
95 CXXBasePaths &Paths) const {
96 bool FoundPath = false;
97
98 ASTContext &Context = getASTContext();
99 for (base_class_const_iterator BaseSpec = bases_begin(),
100 BaseSpecEnd = bases_end(); BaseSpec != BaseSpecEnd; ++BaseSpec) {

--- 145 unchanged lines hidden ---