Home
last modified time | relevance | path

Searched refs:getCanonicalDecl (Results 1 – 25 of 91) 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.cpp628 if (Function->getCanonicalDecl()->getStorageClass() == SC_Static) in getLVForNamespaceScopeDecl()
1141 if (Function->getCanonicalDecl()->getStorageClass() == SC_Static) in getLVForLocalDecl()
1566 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces()
1908 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in VarDecl
1927 !(getCanonicalDecl()->isInline() && in isThisDeclarationADefinition()
1928 getCanonicalDecl()->isConstexpr()) && in isThisDeclarationADefinition()
2483 Definition = I->IsDeleted ? I->getCanonicalDecl() : I; in isDefined()
2639 if (getCanonicalDecl()->getStorageClass() == SC_Static) in isGlobal()
2676 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in FunctionDecl
3475 const FieldDecl *Canonical = getCanonicalDecl(); in getFieldIndex()
[all …]
DDeclCXX.cpp1149 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())); in CollectVisibleConversions()
1219 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()))) in CollectVisibleConversions()
1465 const CXXMethodDecl *MD = getCanonicalDecl(); in isStatic()
1479 if (MD->getCanonicalDecl() == BaseMD->getCanonicalDecl()) in recursivelyOverrides()
1490 if (this->getParent()->getCanonicalDecl() == RD->getCanonicalDecl()) in getCorrespondingMethodInClass()
/external/clang/lib/StaticAnalyzer/Checkers/
DIvarInvalidationChecker.cpp252 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod()
291 const ObjCIvarDecl *I = cast<ObjCIvarDecl>(Iv->getCanonicalDecl()); in trackIvar()
398 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
405 SetterD = cast<ObjCMethodDecl>(SetterD->getCanonicalDecl()); in visit()
411 GetterD = cast<ObjCMethodDecl>(GetterD->getCanonicalDecl()); in visit()
602 markInvalidated(cast<ObjCIvarDecl>(D->getCanonicalDecl())); in checkObjCIvarRefExpr()
609 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCMessageExpr()
622 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
633 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
705 MD = cast<ObjCMethodDecl>(MD->getCanonicalDecl()); in VisitObjCMessageExpr()
DDirectIvarAssignment.cpp150 MethodCrawler MC(IvarToPropMap, M->getCanonicalDecl(), InterD, BR, this, in checkASTDecl()
193 if (SetterMethod && SetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator()
196 if (GetterMethod && GetterMethod->getCanonicalDecl() == MD) in VisitBinaryOperator()
DNoReturnFunctionChecker.cpp92 MD = MD->getCanonicalDecl(); in checkPostObjCMessage()
/external/clang/include/clang/AST/
DDeclCXX.h654 CXXRecordDecl *getCanonicalDecl() override { in getCanonicalDecl() function
655 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl()); in getCanonicalDecl()
657 const CXXRecordDecl *getCanonicalDecl() const { in getCanonicalDecl() function
658 return const_cast<CXXRecordDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1782 cast<CXXMethodDecl>(const_cast<CXXMethodDecl*>(this)->getCanonicalDecl()); in isVirtual()
1804 CXXMethodDecl *getCanonicalDecl() override { in getCanonicalDecl() function
1805 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl()); in getCanonicalDecl()
1807 const CXXMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1808 return const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1822 return !(isDeleted() || getCanonicalDecl()->isDefaulted()); in isUserProvided()
[all …]
DDecl.h557 NamespaceDecl *getCanonicalDecl() override { in getCanonicalDecl() function
560 const NamespaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1063 VarDecl *getCanonicalDecl() override;
1064 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1065 return const_cast<VarDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
1909 bool isDeleted() const { return getCanonicalDecl()->IsDeleted; } in isDeleted()
1981 FunctionDecl *getCanonicalDecl() override;
1982 const FunctionDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1983 return const_cast<FunctionDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
2466 FieldDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
[all …]
DDeclTemplate.h723 RedeclarableTemplateDecl *getCanonicalDecl() override { in getCanonicalDecl() function
726 const RedeclarableTemplateDecl *getCanonicalDecl() const { in getCanonicalDecl() function
914 FunctionTemplateDecl *getCanonicalDecl() override {
916 RedeclarableTemplateDecl::getCanonicalDecl());
918 const FunctionTemplateDecl *getCanonicalDecl() const {
920 RedeclarableTemplateDecl::getCanonicalDecl());
2019 ClassTemplateDecl *getCanonicalDecl() override {
2021 RedeclarableTemplateDecl::getCanonicalDecl());
2023 const ClassTemplateDecl *getCanonicalDecl() const {
2025 RedeclarableTemplateDecl::getCanonicalDecl());
[all …]
DGlobalDecl.h54 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function
56 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
DDeclBase.h530 void setIsUsed() { getCanonicalDecl()->Used = true; } in setIsUsed()
762 virtual Decl *getCanonicalDecl() { return this; } in getCanonicalDecl() function
763 const Decl *getCanonicalDecl() const { in getCanonicalDecl() function
764 return const_cast<Decl*>(this)->getCanonicalDecl(); in getCanonicalDecl()
768 bool isCanonicalDecl() const { return getCanonicalDecl() == this; } in isCanonicalDecl()
1046 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()
1815 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
1816 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() function
2137 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function
2138 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()
313 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive()
464 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()
164 contextClass = MD->getParent()->getCanonicalDecl(); in ClassifyImplicitMemberAccess()
175 contextClass->getCanonicalDecl() != in ClassifyImplicitMemberAccess()
176 R.getNamingClass()->getCanonicalDecl()) { in ClassifyImplicitMemberAccess()
181 Classes.insert(R.getNamingClass()->getCanonicalDecl()); in ClassifyImplicitMemberAccess()
553 CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl(); in CheckQualifiedMemberReference()
554 if (BaseRecord->getCanonicalDecl() == MemberRecord || in CheckQualifiedMemberReference()
DSemaTemplateInstantiateDecl.cpp1546 D->getCanonicalDecl()->getStorageClass(), in VisitFunctionDecl()
4385 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4388 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4398 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4401 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4413 = cast<ClassTemplatePartialSpecializationDecl>(Pattern->getCanonicalDecl()); in isInstantiationOf()
4416 Instance->getCanonicalDecl()); in isInstantiationOf()
4427 Pattern = Pattern->getCanonicalDecl(); in isInstantiationOf()
4430 Instance = Instance->getCanonicalDecl(); in isInstantiationOf()
4440 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()
3710 ActiveUnionMember.lookup(Record->getCanonicalDecl())) in isInactiveUnionMember()
3711 return Active != Field->getCanonicalDecl(); in isInactiveUnionMember()
3771 Info.AllBaseFields.lookup(Field->getCanonicalDecl())) in CollectFieldInitializer()
3886 Info.AllBaseFields[Member->getAnyMember()->getCanonicalDecl()] = Member; in SetCtorInitializers()
3893 FD->getParent()->getCanonicalDecl(), FD->getCanonicalDecl())); in SetCtorInitializers()
[all …]
/external/clang/lib/Index/
DIndexingContext.cpp220 static const Decl *getCanonicalDecl(const Decl *D) { in getCanonicalDecl() function
221 D = D->getCanonicalDecl(); in getCanonicalDecl()
292 D = getCanonicalDecl(D); in handleDeclOccurrence()
300 Parent = getCanonicalDecl(Parent); in handleDeclOccurrence()
328 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/external/clang/lib/CodeGen/
DCGRecordLayout.h186 FD = FD->getCanonicalDecl(); in getLLVMFieldNo()
205 FD = FD->getCanonicalDecl(); in getBitFieldInfo()
DCGDebugInfo.cpp1049 Var = Var->getCanonicalDecl(); in CreateRecordStaticField()
1069 StaticDataMemberCache[Var->getCanonicalDecl()].reset(GV); in CreateRecordStaticField()
1117 auto MI = StaticDataMemberCache.find(V->getCanonicalDecl()); in CollectRecordFields()
1308 SPCache[Method->getCanonicalDecl()].reset(SP); in CreateCXXMemberFunction()
1344 auto MI = SPCache.find(Method->getCanonicalDecl()); in CollectCXXMemberFunctions()
2710 const FunctionDecl *CanonDecl = cast<FunctionDecl>(FD->getCanonicalDecl()); in getFunctionForwardDeclaration()
2732 std::make_tuple(cast<VarDecl>(VD->getCanonicalDecl())), in getGlobalVariableForwardDeclaration()
2745 auto I = DeclCache.find(D->getCanonicalDecl()); in getDeclarationOrDefinition()
2771 auto MI = SPCache.find(FD->getCanonicalDecl()); in getFunctionDeclaration()
2774 dyn_cast<CXXMethodDecl>(FD->getCanonicalDecl())) { in getFunctionDeclaration()
[all …]
DCGStmtOpenMP.cpp581 cast<VarDecl>(cast<DeclRefExpr>(D)->getDecl())->getCanonicalDecl()); in EmitOMPFirstprivateClause()
591 Lastprivates.count(OrigVD->getCanonicalDecl()) > 0; in EmitOMPFirstprivateClause()
596 EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()); in EmitOMPFirstprivateClause()
603 if (EmittedAsFirstprivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPFirstprivateClause()
675 if (EmittedAsPrivate.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPPrivateClause()
708 if (CopiedVars.insert(VD->getCanonicalDecl()).second) { in EmitOMPCopyinClause()
768 cast<VarDecl>(cast<DeclRefExpr>(C)->getDecl())->getCanonicalDecl()); in EmitOMPLastprivateClauseInit()
784 if (AlreadyEmittedVars.insert(OrigVD->getCanonicalDecl()).second) { in EmitOMPLastprivateClauseInit()
797 if (IInit && !SIMDLCVs.count(OrigVD->getCanonicalDecl())) { in EmitOMPLastprivateClauseInit()
841 cast<VarDecl>(cast<DeclRefExpr>(*IC)->getDecl())->getCanonicalDecl(); in EmitOMPLastprivateClauseFinal()
[all …]
/external/clang/lib/Serialization/
DASTReaderDecl.cpp455 D->getCanonicalDecl()->Used |= IsDeclMarkedUsed; in Visit()
692 EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()]; in VisitEnumDecl()
696 for (auto *D : merged_redecls(ED->getCanonicalDecl())) { in VisitEnumDecl()
994 ID->getCanonicalDecl()->Data = ID->Data; in VisitObjCInterfaceDecl()
1035 ID->Data = ID->getCanonicalDecl()->Data; in VisitObjCInterfaceDecl()
1059 PD->getCanonicalDecl()->Data = PD->Data; in VisitObjCProtocolDecl()
1076 PD->Data = PD->getCanonicalDecl()->Data; in VisitObjCProtocolDecl()
1680 CXXRecordDecl *Canon = D->getCanonicalDecl(); in ReadCXXRecordDefinition()
1747 D->DefinitionData = D->getCanonicalDecl()->DefinitionData; in VisitCXXRecordDeclImpl()
1772 Reader.getContext().addOverriddenMethod(D, MD->getCanonicalDecl()); in VisitCXXMethodDecl()
[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()
/external/clang/lib/StaticAnalyzer/Core/
DStore.cpp232 return Expected->getCanonicalDecl() == RD->getCanonicalDecl(); in regionMatchesCXXRecordType()

1234