Home
last modified time | relevance | path

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

1234

/external/clang/lib/AST/
DCXXInheritance.cpp84 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isDerivedFrom()
89 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isDerivedFrom()
105 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isVirtuallyDerivedFrom()
110 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isVirtuallyDerivedFrom()
120 const CXXRecordDecl *TargetDecl = Base->getCanonicalDecl(); in isProvablyNotDerivedFrom()
122 return Base->getCanonicalDecl() != TargetDecl; in isProvablyNotDerivedFrom()
359 assert(BaseRecord->getCanonicalDecl() == BaseRecord && in FindBaseClass()
362 ->getCanonicalDecl() == BaseRecord; in FindBaseClass()
368 assert(BaseRecord->getCanonicalDecl() == BaseRecord && in FindVirtualBaseClass()
372 ->getCanonicalDecl() == BaseRecord; in FindVirtualBaseClass()
[all …]
DMicrosoftCXXABI.cpp120 TD = TD->getCanonicalDecl(); in addTypedefNameForUnnamedTagDecl()
121 DD = cast<TypedefNameDecl>(DD->getCanonicalDecl()); in addTypedefNameForUnnamedTagDecl()
129 const_cast<TagDecl *>(TD->getCanonicalDecl())); in getTypedefNameForUnnamedTagDecl()
134 TD = TD->getCanonicalDecl(); in addDeclaratorForUnnamedTagDecl()
135 DD = cast<DeclaratorDecl>(DD->getCanonicalDecl()); in addDeclaratorForUnnamedTagDecl()
143 const_cast<TagDecl *>(TD->getCanonicalDecl())); in getDeclaratorForUnnamedTagDecl()
DDecl.cpp625 if (Function->getCanonicalDecl()->getStorageClass() == SC_Static) in getLVForNamespaceScopeDecl()
1138 if (Function->getCanonicalDecl()->getStorageClass() == SC_Static) in getLVForLocalDecl()
1566 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()
1905 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in VarDecl
2407 Definition = I->IsDeleted ? I->getCanonicalDecl() : I; in isDefined()
2563 if (getCanonicalDecl()->getStorageClass() == SC_Static) in isGlobal()
2600 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in FunctionDecl
3364 const FieldDecl *Canonical = getCanonicalDecl(); in getFieldIndex()
3374 Field->getCanonicalDecl()->CachedFieldIndex = Index + 1; in getFieldIndex()
3421 TagDecl *TagDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in TagDecl
[all …]
DDeclCXX.cpp1093 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())); in CollectVisibleConversions()
1163 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()))) in CollectVisibleConversions()
1397 const CXXMethodDecl *MD = getCanonicalDecl(); in isStatic()
1411 if (MD->getCanonicalDecl() == BaseMD->getCanonicalDecl()) in recursivelyOverrides()
1422 if (this->getParent()->getCanonicalDecl() == RD->getCanonicalDecl()) in getCorrespondingMethodInClass()
/external/clang/lib/StaticAnalyzer/Checkers/
DIvarInvalidationChecker.cpp254 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod()
295 const ObjCIvarDecl *I = cast<ObjCIvarDecl>(Iv->getCanonicalDecl()); in trackIvar()
400 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
407 SetterD = cast<ObjCMethodDecl>(SetterD->getCanonicalDecl()); in visit()
413 GetterD = cast<ObjCMethodDecl>(GetterD->getCanonicalDecl()); in visit()
605 markInvalidated(cast<ObjCIvarDecl>(D->getCanonicalDecl())); in checkObjCIvarRefExpr()
612 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCMessageExpr()
625 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
636 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
708 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in VisitObjCMessageExpr()
DDirectIvarAssignment.cpp151 MethodCrawler MC(IvarToPropMap, M->getCanonicalDecl(), InterD, BR, this, in checkASTDecl()
194 if (SetterMethod && SetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator()
197 if (GetterMethod && GetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator()
DNoReturnFunctionChecker.cpp91 MD = MD->getCanonicalDecl(); in checkPostObjCMessage()
/external/clang/include/clang/AST/
DDeclCXX.h651 CXXRecordDecl *getCanonicalDecl() override { in getCanonicalDecl() function
652 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl()); in getCanonicalDecl()
654 const CXXRecordDecl *getCanonicalDecl() const { in getCanonicalDecl() function
655 return const_cast<CXXRecordDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1753 cast<CXXMethodDecl>(const_cast<CXXMethodDecl*>(this)->getCanonicalDecl()); in isVirtual()
1775 CXXMethodDecl *getCanonicalDecl() override { in getCanonicalDecl() function
1776 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl()); in getCanonicalDecl()
1778 const CXXMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1779 return const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1793 return !(isDeleted() || getCanonicalDecl()->isDefaulted()); in isUserProvided()
[all …]
DDecl.h497 NamespaceDecl *getCanonicalDecl() override { in getCanonicalDecl() function
500 const NamespaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function
990 VarDecl *getCanonicalDecl() override;
991 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function
992 return const_cast<VarDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1873 bool isDeleted() const { return getCanonicalDecl()->IsDeleted; } in isDeleted()
1945 FunctionDecl *getCanonicalDecl() override;
1946 const FunctionDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1947 return const_cast<FunctionDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
2447 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
[all …]
DGlobalDecl.h52 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function
54 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
DDeclTemplate.h718 RedeclarableTemplateDecl *getCanonicalDecl() override { in getCanonicalDecl() function
721 const RedeclarableTemplateDecl *getCanonicalDecl() const { in getCanonicalDecl() function
909 FunctionTemplateDecl *getCanonicalDecl() override {
911 RedeclarableTemplateDecl::getCanonicalDecl());
913 const FunctionTemplateDecl *getCanonicalDecl() const {
915 RedeclarableTemplateDecl::getCanonicalDecl());
2017 ClassTemplateDecl *getCanonicalDecl() override {
2019 RedeclarableTemplateDecl::getCanonicalDecl());
2021 const ClassTemplateDecl *getCanonicalDecl() const {
2023 RedeclarableTemplateDecl::getCanonicalDecl());
[all …]
DDeclBase.h748 virtual Decl *getCanonicalDecl() { return this; } in getCanonicalDecl() function
749 const Decl *getCanonicalDecl() const { in getCanonicalDecl() function
750 return const_cast<Decl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
754 bool isCanonicalDecl() const { return getCanonicalDecl() == this; } in isCanonicalDecl()
1028 return D1->getCanonicalDecl() == D2->getCanonicalDecl(); in declaresSameEntity()
DDeclObjC.h264 ObjCMethodDecl *getCanonicalDecl() override;
265 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function
266 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1573 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
1574 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() function
1895 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
1896 const ObjCProtocolDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() function
/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()
217 InstanceContext = (IC ? cast<CXXRecordDecl>(IC)->getCanonicalDecl() in resolveInstanceContext()
232 return namingClass->getCanonicalDecl(); in getEffectiveNamingClass()
247 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize()
281 assert(Derived->getCanonicalDecl() == Derived); in IsDerivedFromInclusive()
282 assert(Target->getCanonicalDecl() == Target); in IsDerivedFromInclusive()
312 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive()
469 if (Friend == CTD->getCanonicalDecl()) in MatchesFriend()
[all …]
DIdentifierResolver.cpp268 if (Existing->getCanonicalDecl() == New->getCanonicalDecl()) { in compareDeclarations()
DSemaExprMember.cpp36 return !Bases.count(Base->getCanonicalDecl()); in isProvablyNotDerivedFrom()
114 Classes.insert(R->getCanonicalDecl()); in ClassifyImplicitMemberAccess()
163 contextClass = MD->getParent()->getCanonicalDecl(); in ClassifyImplicitMemberAccess()
174 contextClass->getCanonicalDecl() != in ClassifyImplicitMemberAccess()
175 R.getNamingClass()->getCanonicalDecl()) { in ClassifyImplicitMemberAccess()
180 Classes.insert(R.getNamingClass()->getCanonicalDecl()); in ClassifyImplicitMemberAccess()
539 CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl(); in CheckQualifiedMemberReference()
540 if (BaseRecord->getCanonicalDecl() == MemberRecord || in CheckQualifiedMemberReference()
DSemaTemplateInstantiateDecl.cpp1439 D->getCanonicalDecl()->getStorageClass(), in VisitFunctionDecl()
4175 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4178 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4188 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4191 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4203 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl()); in isInstantiationOf()
4206 Instance->getCanonicalDecl()); in isInstantiationOf()
4217 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4220 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4230 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
[all …]
DSemaDeclCXX.cpp829 Method = Method->getCanonicalDecl(); in CheckConstexprFunctionDecl()
1320 Class = Class->getCanonicalDecl(); in findCircularInheritance()
1331 if (Base->getCanonicalDecl() == Class) in findCircularInheritance()
1380 if (BaseDecl->getCanonicalDecl() == Class->getCanonicalDecl() || in CheckBaseSpecifier()
1386 if (BaseDecl->getCanonicalDecl() != Class->getCanonicalDecl()) in CheckBaseSpecifier()
3360 if (Base && Inherited->getCanonicalDecl() == Base->getCanonicalDecl()) { in BuildImplicitBaseInitializer()
3734 ActiveUnionMember.lookup(Record->getCanonicalDecl())) in isInactiveUnionMember()
3735 return Active != Field->getCanonicalDecl(); in isInactiveUnionMember()
3795 Info.AllBaseFields.lookup(Field->getCanonicalDecl())) in CollectFieldInitializer()
3910 Info.AllBaseFields[Member->getAnyMember()->getCanonicalDecl()] = Member; in SetCtorInitializers()
[all …]
/external/clang/lib/CodeGen/
DCGRecordLayout.h186 FD = FD->getCanonicalDecl(); in getLLVMFieldNo()
205 FD = FD->getCanonicalDecl(); in getBitFieldInfo()
DCGDebugInfo.cpp968 Var = Var->getCanonicalDecl(); in CreateRecordStaticField()
988 StaticDataMemberCache[Var->getCanonicalDecl()].reset(GV); in CreateRecordStaticField()
1035 auto MI = StaticDataMemberCache.find(V->getCanonicalDecl()); in CollectRecordFields()
1198 SPCache[Method->getCanonicalDecl()].reset(SP); in CreateCXXMemberFunction()
1234 auto MI = SPCache.find(Method->getCanonicalDecl()); in CollectCXXMemberFunctions()
2516 const FunctionDecl *CanonDecl = cast<FunctionDecl>(FD->getCanonicalDecl()); in getFunctionForwardDeclaration()
2538 std::make_tuple(cast<VarDecl>(VD->getCanonicalDecl())), in getGlobalVariableForwardDeclaration()
2551 auto I = DeclCache.find(D->getCanonicalDecl()); in getDeclarationOrDefinition()
2577 auto MI = SPCache.find(FD->getCanonicalDecl()); in getFunctionDeclaration()
2580 dyn_cast<CXXMethodDecl>(FD->getCanonicalDecl())) { in getFunctionDeclaration()
[all …]
/external/clang/lib/Serialization/
DASTReaderDecl.cpp637 EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()]; in VisitEnumDecl()
641 for (auto *D : merged_redecls(ED->getCanonicalDecl())) { in VisitEnumDecl()
939 ID->getCanonicalDecl()->Data = ID->Data; in VisitObjCInterfaceDecl()
980 ID->Data = ID->getCanonicalDecl()->Data; in VisitObjCInterfaceDecl()
1004 PD->getCanonicalDecl()->Data = PD->Data; in VisitObjCProtocolDecl()
1021 PD->Data = PD->getCanonicalDecl()->Data; in VisitObjCProtocolDecl()
1604 CXXRecordDecl *Canon = D->getCanonicalDecl(); in ReadCXXRecordDefinition()
1671 D->DefinitionData = D->getCanonicalDecl()->DefinitionData; in VisitCXXRecordDeclImpl()
1696 Reader.getContext().addOverriddenMethod(D, MD->getCanonicalDecl()); in VisitCXXMethodDecl()
1710 D->setInheritedConstructor(CD->getCanonicalDecl()); in VisitCXXConstructorDecl()
[all …]
/external/clang/lib/Analysis/
DThreadSafetyCommon.cpp268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
273 cast<FunctionDecl>(PV->getDeclContext())->getCanonicalDecl(); in translateDeclRefExpr()
276 if (Ctx && Ctx->FunArgs && FD == Ctx->AttrDecl->getCanonicalDecl()) { in translateDeclRefExpr()
324 D = D->getCanonicalDecl(); in getFirstVirtualDecl()
340 cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
DBodyFarm.cpp353 D = D->getCanonicalDecl(); in getBody()
450 D = D->getCanonicalDecl(); in getBody()
DCallGraph.cpp150 F = F->getCanonicalDecl(); in getOrInsertNode()
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp232 return Expected->getCanonicalDecl() == RD->getCanonicalDecl(); in regionMatchesCXXRecordType()

1234