Home
last modified time | relevance | path

Searched refs:getCanonicalDecl (Results 1 – 25 of 68) sorted by relevance

123

/external/clang/lib/AST/
DCXXInheritance.cpp88 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 …]
DASTDiagnostic.cpp987 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()
DDeclCXX.cpp998 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()
DExprConstant.cpp823 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/
DIvarInvalidationChecker.cpp256 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()
DDirectIvarAssignment.cpp161 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()
DNoReturnFunctionChecker.cpp106 MD = MD->getCanonicalDecl(); in checkPostObjCMessage()
/external/clang/lib/Sema/
DSemaAccess.cpp108 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 …]
DSemaTemplateInstantiateDecl.cpp3209 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 …]
DIdentifierResolver.cpp304 if (Existing->getCanonicalDecl() == New->getCanonicalDecl()) { in compareDeclarations()
DSemaExprMember.cpp30 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()
DSemaCXXScopeSpec.cpp558 OuterDecl->getCanonicalDecl() != SD->getCanonicalDecl() && in BuildCXXNestedNameSpecifier()
DSemaTemplateDeduction.cpp165 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/
DGlobalDecl.h51 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function
53 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
DDeclTemplate.h632 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 …]
DDeclCXX.h625 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 …]
DDecl.h412 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 …]
DDeclBase.h673 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()
DDeclObjC.h274 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/
DCGCXX.cpp308 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/
DStore.cpp243 return Expected->getCanonicalDecl() == RD->getCanonicalDecl(); in regionMatchesCXXRecordType()
DExprEngineCallAndReturn.cpp187 return RuntimeCallee->getCanonicalDecl() != StaticDecl->getCanonicalDecl(); in wasDifferentDeclUsedForInlining()
/external/clang/tools/libclang/
DCIndexHigh.cpp35 Methods.push_back(D->getCanonicalDecl()); in getTopOverriddenMethods()
83 D = D->getCanonicalDecl(); in getCanonical()
DCIndexUSRs.cpp392 D = D->getCanonicalDecl(); in VisitTagDecl()
486 D = D->getCanonicalDecl(); in GenLoc()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp696 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()

123