Home
last modified time | relevance | path

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

12

/external/clang/lib/Index/
DDeclReferenceMap.cpp44 NamedDecl *PrimD = cast<NamedDecl>(Node->getDecl()->getCanonicalDecl()); in VisitDeclRefExpr()
49 NamedDecl *PrimD = cast<NamedDecl>(Node->getMemberDecl()->getCanonicalDecl()); in VisitMemberExpr()
77 NamedDecl *Prim = cast<NamedDecl>(D->getCanonicalDecl()); in refs_begin()
83 NamedDecl *Prim = cast<NamedDecl>(D->getCanonicalDecl()); in refs_end()
88 NamedDecl *Prim = cast<NamedDecl>(D->getCanonicalDecl()); in refs_empty()
DSelectorMap.cpp43 if (D->getCanonicalDecl() == D) in VisitObjCMethodDecl()
DEntity.cpp225 Entity::Entity(Decl *D) : Val(D->getCanonicalDecl()) { } in Entity()
/external/clang/lib/AST/
DCXXInheritance.cpp87 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isDerivedFrom()
92 const_cast<CXXRecordDecl*>(Base->getCanonicalDecl()), in isDerivedFrom()
103 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isVirtuallyDerivedFrom()
107 return lookupInBases(&FindVirtualBaseClass, Base->getCanonicalDecl(), Paths); in isVirtuallyDerivedFrom()
112 return Base->getCanonicalDecl() != (const CXXRecordDecl*) OpaqueTarget; in BaseIsNot()
116 return forallBases(BaseIsNot, (void*) Base->getCanonicalDecl()); in isProvablyNotDerivedFrom()
358 assert(((Decl *)BaseRecord)->getCanonicalDecl() == BaseRecord && in FindBaseClass()
361 ->getCanonicalDecl() == BaseRecord; in FindBaseClass()
367 assert(((Decl *)BaseRecord)->getCanonicalDecl() == BaseRecord && in FindVirtualBaseClass()
371 ->getCanonicalDecl() == BaseRecord; in FindVirtualBaseClass()
[all …]
DDeclTemplate.cpp116 RedeclarableTemplateDecl *First = getCanonicalDecl(); in getCommonPtr()
382 Decl *DCanon = D->getCanonicalDecl(); in findPartialSpecInstantiatedFromMember()
387 if (P->getInstantiatedFromMember()->getCanonicalDecl() == DCanon) in findPartialSpecInstantiatedFromMember()
DDecl.cpp1180 VarDecl *VarDecl::getCanonicalDecl() { in getCanonicalDecl() function in VarDecl
1483 Definition = I->IsDeleted ? I->getCanonicalDecl() : *I; in isDefined()
1608 const FunctionDecl *FunctionDecl::getCanonicalDecl() const { in getCanonicalDecl() function in FunctionDecl
1612 FunctionDecl *FunctionDecl::getCanonicalDecl() { in getCanonicalDecl() function in FunctionDecl
1738 if (!isOutOfLine() || getCanonicalDecl()->isInlineSpecified()) in isInlined()
2220 TagDecl* TagDecl::getCanonicalDecl() { in getCanonicalDecl() function in TagDecl
DTemplateBase.cpp222 ID.AddPointer(getAsDecl()? getAsDecl()->getCanonicalDecl() : 0); in Profile()
DASTImporter.cpp1159 if (Context.NonEquivalentDecls.count(std::make_pair(D1->getCanonicalDecl(), in IsStructurallyEquivalent()
1160 D2->getCanonicalDecl()))) in IsStructurallyEquivalent()
1164 Decl *&EquivToD1 = Context.TentativeEquivalences[D1->getCanonicalDecl()]; in IsStructurallyEquivalent()
1166 return EquivToD1 == D2->getCanonicalDecl(); in IsStructurallyEquivalent()
1169 EquivToD1 = D2->getCanonicalDecl(); in IsStructurallyEquivalent()
1170 Context.DeclsToCheck.push_back(D1->getCanonicalDecl()); in IsStructurallyEquivalent()
1291 NonEquivalentDecls.insert(std::make_pair(D1->getCanonicalDecl(), in Finish()
1292 D2->getCanonicalDecl())); in Finish()
3243 Super->getCanonicalDecl() != Impl->getSuperClass())) { in VisitObjCImplementationDecl()
DDeclCXX.cpp900 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())); in CollectVisibleConversions()
971 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()))) in CollectVisibleConversions()
/external/clang/lib/Sema/
DSemaAccess.cpp100 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC)->getCanonicalDecl(); in EffectiveContext()
104 FunctionDecl *Function = cast<FunctionDecl>(DC)->getCanonicalDecl(); in EffectiveContext()
118 R = R->getCanonicalDecl(); in includesClass()
198 InstanceContext = (IC ? cast<CXXRecordDecl>(IC)->getCanonicalDecl() : 0); in resolveInstanceContext()
218 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize()
253 assert(Derived->getCanonicalDecl() == Derived); in IsDerivedFromInclusive()
254 assert(Target->getCanonicalDecl() == Target); in IsDerivedFromInclusive()
283 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive()
443 if (Friend == CTD->getCanonicalDecl()) in MatchesFriend()
505 FTD = FTD->getCanonicalDecl(); in MatchesFriend()
[all …]
DSemaTemplateInstantiateDecl.cpp2811 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
2814 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
2824 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
2827 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
2839 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl()); in isInstantiationOf()
2842 Instance->getCanonicalDecl()); in isInstantiationOf()
2853 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
2856 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
2866 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
2869 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
[all …]
DSemaTemplateDeduction.cpp159 return X->getCanonicalDecl() == Y->getCanonicalDecl(); in isSameDeclaration()
354 DeducedTemplateArgument NewDeduced(D? D->getCanonicalDecl() : 0); in DeduceNonTypeTemplateArgument()
1553 Param.getAsDecl()->getCanonicalDecl() == in DeduceTemplateArguments()
1554 Arg.getAsDecl()->getCanonicalDecl()) in DeduceTemplateArguments()
1826 return X.getAsDecl()->getCanonicalDecl() == in isSameTemplateArg()
1827 Y.getAsDecl()->getCanonicalDecl(); in isSameTemplateArg()
2572 assert(Specialization->getPrimaryTemplate()->getCanonicalDecl() == in FinishTemplateArgumentDeduction()
2573 FunctionTemplate->getCanonicalDecl()); in FinishTemplateArgumentDeduction()
2613 Pos = SuppressedDiagnostics.find(Specialization->getCanonicalDecl()); in FinishTemplateArgumentDeduction()
2615 SuppressedDiagnostics[Specialization->getCanonicalDecl()] in FinishTemplateArgumentDeduction()
[all …]
DSemaExprMember.cpp31 if (Bases.count(Record->getCanonicalDecl())) in IsProvablyNotDerivedFrom()
125 Classes.insert(R->getCanonicalDecl()); in ClassifyImplicitMemberAccess()
161 contextClass = MD->getParent()->getCanonicalDecl(); in ClassifyImplicitMemberAccess()
172 contextClass != R.getNamingClass()->getCanonicalDecl() && in ClassifyImplicitMemberAccess()
515 MemberRecord.insert(cast<CXXRecordDecl>(DC)->getCanonicalDecl()); in CheckQualifiedMemberReference()
DSemaCXXScopeSpec.cpp530 OuterDecl->getCanonicalDecl() != SD->getCanonicalDecl() && in BuildCXXNestedNameSpecifier()
DSemaDeclCXX.cpp3138 bool First = CD == CD->getCanonicalDecl(); in CheckExplicitlyDefaultedDefaultConstructor()
3195 bool First = CD == CD->getCanonicalDecl(); in CheckExplicitlyDefaultedCopyConstructor()
3262 bool First = MD == MD->getCanonicalDecl(); in CheckExplicitlyDefaultedCopyAssignment()
3348 bool First = DD == DD->getCanonicalDecl(); in CheckExplicitlyDefaultedDestructor()
3988 MD = MD->getCanonicalDecl(); in FindHiddenVirtualMethod()
4033 Data.OverridenAndUsingBaseMethods.insert((*I)->getCanonicalDecl()); in DiagnoseHiddenVirtualMethods()
4036 Data.OverridenAndUsingBaseMethods.insert(MD->getCanonicalDecl()); in DiagnoseHiddenVirtualMethods()
5051 if (D1->getCanonicalDecl() == D2->getCanonicalDecl()) { in IsEquivalentForUsingDecl()
8701 if (Primary == Primary->getCanonicalDecl()) in SetDeclDefaulted()
8948 Class = cast<CXXRecordDecl>(Class->getCanonicalDecl()); in MarkVTableUsed()
[all …]
/external/clang/include/clang/AST/
DDeclTemplate.h596 RedeclarableTemplateDecl *getCanonicalDecl() { in getCanonicalDecl() function
616 return getCanonicalDecl(); in getFirstDeclaration()
714 decl_type *getCanonicalDecl() { in getCanonicalDecl() function
718 const decl_type *getCanonicalDecl() const { in getCanonicalDecl() function
719 return const_cast<RedeclarableTemplate*>(this)->getCanonicalDecl(); in getCanonicalDecl()
839 FunctionTemplateDecl *getCanonicalDecl() {
840 return redeclarable_base::getCanonicalDecl();
842 const FunctionTemplateDecl *getCanonicalDecl() const {
843 return redeclarable_base::getCanonicalDecl();
1826 ClassTemplateDecl *getCanonicalDecl() {
[all …]
DGlobalDecl.h51 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function
53 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
DDeclCXX.h574 virtual CXXRecordDecl *getCanonicalDecl() {
575 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
577 virtual const CXXRecordDecl *getCanonicalDecl() const {
578 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl());
1263 cast<CXXMethodDecl>(const_cast<CXXMethodDecl*>(this)->getCanonicalDecl());
1283 const CXXMethodDecl *getCanonicalDecl() const {
1284 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl());
1286 CXXMethodDecl *getCanonicalDecl() {
1287 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl());
1293 return !(isDeleted() || getCanonicalDecl()->isDefaulted());
[all …]
DDecl.h454 virtual NamespaceDecl *getCanonicalDecl() { return getOriginalNamespace(); } in getCanonicalDecl() function
455 const NamespaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function
869 virtual VarDecl *getCanonicalDecl();
870 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function
871 return const_cast<VarDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1668 bool isDeleted() const { return getCanonicalDecl()->IsDeleted; } in isDeleted()
1700 virtual const FunctionDecl *getCanonicalDecl() const;
1701 virtual FunctionDecl *getCanonicalDecl();
2239 TypedefNameDecl *getCanonicalDecl() { in getCanonicalDecl() function
2242 const TypedefNameDecl *getCanonicalDecl() const { in getCanonicalDecl() function
[all …]
DDeclBase.h580 virtual Decl *getCanonicalDecl() { return this; } in getCanonicalDecl() function
581 const Decl *getCanonicalDecl() const { in getCanonicalDecl() function
582 return const_cast<Decl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
586 bool isCanonicalDecl() const { return getCanonicalDecl() == this; } in isCanonicalDecl()
DDeclObjC.h209 virtual ObjCMethodDecl *getCanonicalDecl();
210 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function
211 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
/external/clang/lib/CodeGen/
DCGCXX.cpp311 MD = MD->getCanonicalDecl(); in BuildVirtualCall()
341 MD = MD->getCanonicalDecl(); in BuildAppleKextVirtualCall()
375 DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl()); in BuildAppleKextVirtualDestructorCall()
391 DD = cast<CXXDestructorDecl>(DD->getCanonicalDecl()); in BuildVirtualCall()
/external/clang/tools/libclang/
DCIndexUSRs.cpp390 D = D->getCanonicalDecl(); in VisitTagDecl()
481 D = D->getCanonicalDecl(); in GenLoc()
/external/clang/include/clang/Sema/
DOverload.h676 return Functions.insert(F->getCanonicalDecl()); in isNewCandidate()
DLookup.h661 Decls.erase(cast<NamedDecl>(D->getCanonicalDecl())); in erase()

12