/external/clang/lib/AST/ |
D | CXXInheritance.cpp | 88 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isDerivedFrom() 93 const_cast<CXXRecordDecl*>(Base->getCanonicalDecl()), in isDerivedFrom() 104 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isVirtuallyDerivedFrom() 109 const void *BasePtr = static_cast<const void*>(Base->getCanonicalDecl()); in isVirtuallyDerivedFrom() 117 return Base->getCanonicalDecl() != (const CXXRecordDecl*) OpaqueTarget; in BaseIsNot() 122 const_cast<CXXRecordDecl *>(Base->getCanonicalDecl())); in isProvablyNotDerivedFrom() 377 assert(((Decl *)BaseRecord)->getCanonicalDecl() == BaseRecord && in FindBaseClass() 380 ->getCanonicalDecl() == BaseRecord; in FindBaseClass() 386 assert(((Decl *)BaseRecord)->getCanonicalDecl() == BaseRecord && in FindVirtualBaseClass() 390 ->getCanonicalDecl() == BaseRecord; in FindVirtualBaseClass() [all …]
|
D | ASTDiagnostic.cpp | 987 Tree.SetSame(FromValueDecl->getCanonicalDecl() == in DiffTemplate() 988 ToValueDecl->getCanonicalDecl()); in DiffTemplate() 1004 FromDecl->getCanonicalDecl() == ToDecl->getCanonicalDecl()); in DiffTemplate() 1030 return FromTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl() == in hasSameBaseTemplate() 1031 ToTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl(); in hasSameBaseTemplate()
|
D | DeclCXX.cpp | 998 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())); in CollectVisibleConversions() 1070 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()))) in CollectVisibleConversions() 1259 if (MD->getCanonicalDecl() == BaseMD->getCanonicalDecl()) in recursivelyOverrides() 1270 if (this->getParent()->getCanonicalDecl() == RD->getCanonicalDecl()) in getCorrespondingMethodInClass()
|
D | ExprConstant.cpp | 823 if (Expected->getCanonicalDecl() != Class->getCanonicalDecl()) { in castBack() 867 if (LHS.getDecl()->getCanonicalDecl() != RHS.getDecl()->getCanonicalDecl()) in operator ==() 1501 Base = Base->getCanonicalDecl(); in getBaseIndex() 1505 if (I->getType()->getAsCXXRecordDecl()->getCanonicalDecl() == Base) in getBaseIndex() 1610 UnionField->getCanonicalDecl() != Field->getCanonicalDecl()) { in ExtractSubobject() 1950 if (LVDecl->getCanonicalDecl() != MPDecl->getCanonicalDecl()) in HandleMemberPointerAccess() 2026 if (FinalType->getCanonicalDecl() != TargetType->getCanonicalDecl()) { in HandleBaseToDerivedCast() 2606 assert(BaseTy->castAs<RecordType>()->getDecl()->getCanonicalDecl() == in VisitMemberExpr() 2607 FD->getParent()->getCanonicalDecl() && "record / field mismatch"); in VisitMemberExpr() 2699 assert(BaseTy->getAs<RecordType>()->getDecl()->getCanonicalDecl() == in VisitMemberExpr() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | IvarInvalidationChecker.cpp | 256 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod() 307 const ObjCIvarDecl *I = cast<ObjCIvarDecl>(Iv->getCanonicalDecl()); in trackIvar() 412 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit() 419 SetterD = cast<ObjCMethodDecl>(SetterD->getCanonicalDecl()); in visit() 425 GetterD = cast<ObjCMethodDecl>(GetterD->getCanonicalDecl()); in visit() 594 markInvalidated(cast<ObjCIvarDecl>(D->getCanonicalDecl())); in checkObjCIvarRefExpr() 601 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCMessageExpr() 614 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr() 625 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCPropertyRefExpr() 697 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in VisitObjCMessageExpr()
|
D | DirectIvarAssignment.cpp | 161 MethodCrawler MC(IvarToPropMap, M->getCanonicalDecl(), InterD, BR, DCtx); in checkASTDecl() 207 if (SetterMethod && SetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator() 210 if (GetterMethod && GetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator()
|
D | NoReturnFunctionChecker.cpp | 106 MD = MD->getCanonicalDecl(); in checkPostObjCMessage()
|
/external/clang/lib/Sema/ |
D | SemaAccess.cpp | 108 Records.push_back(Record->getCanonicalDecl()); in EffectiveContext() 112 Functions.push_back(Function->getCanonicalDecl()); in EffectiveContext() 128 R = R->getCanonicalDecl(); in includesClass() 212 InstanceContext = (IC ? cast<CXXRecordDecl>(IC)->getCanonicalDecl() : 0); in resolveInstanceContext() 226 return namingClass->getCanonicalDecl(); in getEffectiveNamingClass() 241 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize() 275 assert(Derived->getCanonicalDecl() == Derived); in IsDerivedFromInclusive() 276 assert(Target->getCanonicalDecl() == Target); in IsDerivedFromInclusive() 308 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive() 468 if (Friend == CTD->getCanonicalDecl()) in MatchesFriend() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 3209 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf() 3212 Instance = Instance->getCanonicalDecl(); in isInstantiationOf() 3222 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf() 3225 Instance = Instance->getCanonicalDecl(); in isInstantiationOf() 3237 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl()); in isInstantiationOf() 3240 Instance->getCanonicalDecl()); in isInstantiationOf() 3251 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf() 3254 Instance = Instance->getCanonicalDecl(); in isInstantiationOf() 3264 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf() 3267 Instance = Instance->getCanonicalDecl(); in isInstantiationOf() [all …]
|
D | IdentifierResolver.cpp | 304 if (Existing->getCanonicalDecl() == New->getCanonicalDecl()) { in compareDeclarations()
|
D | SemaExprMember.cpp | 30 return !Bases.count(Base->getCanonicalDecl()); in BaseIsNotInSet() 112 Classes.insert(R->getCanonicalDecl()); in ClassifyImplicitMemberAccess() 149 contextClass = MD->getParent()->getCanonicalDecl(); in ClassifyImplicitMemberAccess() 160 contextClass->getCanonicalDecl() != in ClassifyImplicitMemberAccess() 161 R.getNamingClass()->getCanonicalDecl()) { in ClassifyImplicitMemberAccess() 166 Classes.insert(R.getNamingClass()->getCanonicalDecl()); in ClassifyImplicitMemberAccess() 527 CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl(); in CheckQualifiedMemberReference() 528 if (BaseRecord->getCanonicalDecl() == MemberRecord || in CheckQualifiedMemberReference()
|
D | SemaCXXScopeSpec.cpp | 558 OuterDecl->getCanonicalDecl() != SD->getCanonicalDecl() && in BuildCXXNestedNameSpecifier()
|
D | SemaTemplateDeduction.cpp | 165 return X->getCanonicalDecl() == Y->getCanonicalDecl(); in isSameDeclaration() 381 D = D ? cast<ValueDecl>(D->getCanonicalDecl()) : 0; in DeduceNonTypeTemplateArgument() 2712 assert(Specialization->getPrimaryTemplate()->getCanonicalDecl() == in FinishTemplateArgumentDeduction() 2713 FunctionTemplate->getCanonicalDecl()); in FinishTemplateArgumentDeduction() 2753 Pos = SuppressedDiagnostics.find(Specialization->getCanonicalDecl()); in FinishTemplateArgumentDeduction() 2755 SuppressedDiagnostics[Specialization->getCanonicalDecl()] in FinishTemplateArgumentDeduction() 4017 return T1->getCanonicalDecl() == T2->getCanonicalDecl(); in isSameTemplate()
|
/external/clang/include/clang/AST/ |
D | GlobalDecl.h | 51 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function 53 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
|
D | DeclTemplate.h | 632 RedeclarableTemplateDecl *getCanonicalDecl() { return getFirstDeclaration(); } in getCanonicalDecl() function 633 const RedeclarableTemplateDecl *getCanonicalDecl() const { in getCanonicalDecl() function 805 FunctionTemplateDecl *getCanonicalDecl() { 807 RedeclarableTemplateDecl::getCanonicalDecl()); 809 const FunctionTemplateDecl *getCanonicalDecl() const { 811 RedeclarableTemplateDecl::getCanonicalDecl()); 1890 ClassTemplateDecl *getCanonicalDecl() { 1892 RedeclarableTemplateDecl::getCanonicalDecl()); 1894 const ClassTemplateDecl *getCanonicalDecl() const { 1896 RedeclarableTemplateDecl::getCanonicalDecl()); [all …]
|
D | DeclCXX.h | 625 virtual CXXRecordDecl *getCanonicalDecl() { 626 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl()); 628 virtual const CXXRecordDecl *getCanonicalDecl() const { 629 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl()); 1614 cast<CXXMethodDecl>(const_cast<CXXMethodDecl*>(this)->getCanonicalDecl()); 1636 const CXXMethodDecl *getCanonicalDecl() const { 1637 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl()); 1639 CXXMethodDecl *getCanonicalDecl() { 1640 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl()); 1646 return !(isDeleted() || getCanonicalDecl()->isDefaulted()); [all …]
|
D | Decl.h | 412 NamespaceDecl *getCanonicalDecl() { in getCanonicalDecl() function 415 const NamespaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function 864 virtual VarDecl *getCanonicalDecl(); 865 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function 866 return const_cast<VarDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 1686 bool isDeleted() const { return getCanonicalDecl()->IsDeleted; } in isDeleted() 1729 virtual const FunctionDecl *getCanonicalDecl() const; 1730 virtual FunctionDecl *getCanonicalDecl(); 2309 TypedefNameDecl *getCanonicalDecl() { in getCanonicalDecl() function 2312 const TypedefNameDecl *getCanonicalDecl() const { in getCanonicalDecl() function [all …]
|
D | DeclBase.h | 673 virtual Decl *getCanonicalDecl() { return this; } in getCanonicalDecl() function 674 const Decl *getCanonicalDecl() const { in getCanonicalDecl() function 675 return const_cast<Decl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 679 bool isCanonicalDecl() const { return getCanonicalDecl() == this; } in isCanonicalDecl() 892 return D1->getCanonicalDecl() == D2->getCanonicalDecl(); in declaresSameEntity()
|
D | DeclObjC.h | 274 virtual ObjCMethodDecl *getCanonicalDecl(); 275 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function 276 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 1188 ObjCInterfaceDecl *getCanonicalDecl() { in getCanonicalDecl() function 1191 const ObjCInterfaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function 1494 ObjCProtocolDecl *getCanonicalDecl() { in getCanonicalDecl() function 1497 const ObjCProtocolDecl *getCanonicalDecl() const { in getCanonicalDecl() function
|
/external/clang/lib/CodeGen/ |
D | CGCXX.cpp | 308 MD = MD->getCanonicalDecl(); in BuildVirtualCall() 338 MD = MD->getCanonicalDecl(); in BuildAppleKextVirtualCall() 371 DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl()); in BuildAppleKextVirtualDestructorCall() 388 DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl()); in BuildVirtualCall()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | Store.cpp | 243 return Expected->getCanonicalDecl() == RD->getCanonicalDecl(); in regionMatchesCXXRecordType()
|
D | ExprEngineCallAndReturn.cpp | 187 return RuntimeCallee->getCanonicalDecl() != StaticDecl->getCanonicalDecl(); in wasDifferentDeclUsedForInlining()
|
/external/clang/tools/libclang/ |
D | CIndexHigh.cpp | 35 Methods.push_back(D->getCanonicalDecl()); in getTopOverriddenMethods() 83 D = D->getCanonicalDecl(); in getCanonical()
|
D | CIndexUSRs.cpp | 392 D = D->getCanonicalDecl(); in VisitTagDecl() 486 D = D->getCanonicalDecl(); in GenLoc()
|
/external/clang/lib/Serialization/ |
D | ASTReaderDecl.cpp | 696 ID->getCanonicalDecl()->Data = ID->Data; in VisitObjCInterfaceDecl() 737 ID->Data = ID->getCanonicalDecl()->Data; in VisitObjCInterfaceDecl() 761 PD->getCanonicalDecl()->Data = PD->Data; in VisitObjCProtocolDecl() 778 PD->Data = PD->getCanonicalDecl()->Data; in VisitObjCProtocolDecl() 1172 D->getCanonicalDecl()->DefinitionData = D->DefinitionData; in VisitCXXRecordDecl() 1182 D->DefinitionData = D->getCanonicalDecl()->DefinitionData; in VisitCXXRecordDecl() 1302 RedeclarableTemplateDecl *CanonD = D->getCanonicalDecl(); in VisitRedeclarableTemplateDecl() 1580 T *ExistingCanon = Existing->getCanonicalDecl(); in mergeRedeclarable() 1581 T *DCanon = static_cast<T*>(D)->getCanonicalDecl(); in mergeRedeclarable() 2342 Decl *CanonDecl = D->getCanonicalDecl(); in loadPendingDeclChain()
|