/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | CXXInheritance.cpp | 75 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isDerivedFrom() 80 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isDerivedFrom() 96 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isVirtuallyDerivedFrom() 101 const CXXRecordDecl *BaseDecl = Base->getCanonicalDecl(); in isVirtuallyDerivedFrom() 110 const CXXRecordDecl *TargetDecl = Base->getCanonicalDecl(); in isProvablyNotDerivedFrom() 112 return Base->getCanonicalDecl() != TargetDecl; in isProvablyNotDerivedFrom() 366 assert(BaseRecord->getCanonicalDecl() == BaseRecord && in FindBaseClass() 369 ->getCanonicalDecl() == BaseRecord; in FindBaseClass() 375 assert(BaseRecord->getCanonicalDecl() == BaseRecord && in FindVirtualBaseClass() 379 ->getCanonicalDecl() == BaseRecord; in FindVirtualBaseClass() [all …]
|
H A D | ComparisonCategories.cpp | 82 DeclContextLookupResult Lookup = Record->getCanonicalDecl()->lookup( in lookupValueInfo() 134 const auto *CanonRD = RD->getCanonicalDecl(); in lookupInfoForType() 137 if (CanonRD == Info.Record->getCanonicalDecl()) in lookupInfoForType()
|
H A D | APValue.cpp | 43 : Ptr(P ? cast<ValueDecl>(P->getCanonicalDecl()) : nullptr), Local{I, V} {} in LValueBase() 149 BaseOrMember.setPointer(D->getCanonicalDecl()); in LValuePathEntry() 493 ID.AddPointer(getAddrLabelDiffLHS()->getLabel()->getCanonicalDecl()); in Profile() 494 ID.AddPointer(getAddrLabelDiffRHS()->getLabel()->getCanonicalDecl()); in Profile() 1053 Field ? Field->getCanonicalDecl() : nullptr; in setUnion() 1102 Member ? cast<ValueDecl>(Member->getCanonicalDecl()) : nullptr); in setMemberPointerUninit() 1113 InternalPath[I] = Path[I]->getCanonicalDecl(); in MakeMemberPointer()
|
H A D | TemplateName.cpp | 269 ID.AddPointer(USD->getCanonicalDecl()); in Profile() 271 ID.AddPointer(TD->getCanonicalDecl()); in Profile()
|
H A D | Decl.cpp | 621 if ((getStorageClass(D->getCanonicalDecl()) == SC_Static) || in getLVForNamespaceScopeDecl() 1213 cast<NamedDecl>(this->getCanonicalDecl())) && in getFormalLinkage() 1355 if (Function->getCanonicalDecl()->getStorageClass() == SC_Static) in getLVForLocalDecl() 1880 if (getCanonicalDecl() != OldD->getCanonicalDecl()) in declarationReplaces() 2239 VarDecl *VarDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in VarDecl 2261 !(getCanonicalDecl()->isInline() && in isThisDeclarationADefinition() 2262 getCanonicalDecl()->isConstexpr()) && in isThisDeclarationADefinition() 3498 if (getCanonicalDecl()->getStorageClass() == SC_Static) in isGlobal() 3605 FunctionDecl *FunctionDecl::getCanonicalDecl() { return getFirstDecl(); } in getCanonicalDecl() function in FunctionDecl 4633 const FieldDecl *Canonical = getCanonicalDecl(); in getFieldIndex() [all …]
|
H A D | DeclCXX.cpp | 578 UniqueBases.insert(Base->getCanonicalDecl()).second && in getStandardLayoutBaseWithFields() 659 RD = RD->getCanonicalDecl(); in hasSubobjectAtOffsetZeroOfEmptyBaseType() 672 Base = Base->getCanonicalDecl(); in hasSubobjectAtOffsetZeroOfEmptyBaseType() 1794 HiddenVBaseCs.insert(cast<NamedDecl>(I.getDecl()->getCanonicalDecl())); in CollectVisibleConversions() 1864 if (!HiddenVBaseCs.count(cast<NamedDecl>(I.getDecl()->getCanonicalDecl()))) in CollectVisibleConversions() 2225 const CXXMethodDecl *MD = getCanonicalDecl(); in isStatic() 2237 if (MD->getCanonicalDecl() == BaseMD->getCanonicalDecl()) in recursivelyOverrides() 2248 if (this->getParent()->getCanonicalDecl() == RD->getCanonicalDecl()) in getCorrespondingMethodDeclaredInClass()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | DeclCXX.h | 523 CXXRecordDecl *getCanonicalDecl() override { in getCanonicalDecl() function 524 return cast<CXXRecordDecl>(RecordDecl::getCanonicalDecl()); in getCanonicalDecl() 527 const CXXRecordDecl *getCanonicalDecl() const { in getCanonicalDecl() function 528 return const_cast<CXXRecordDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 2123 CXXMethodDecl *CD = const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in isVirtual() 2163 CXXMethodDecl *getCanonicalDecl() override { in getCanonicalDecl() function 2164 return cast<CXXMethodDecl>(FunctionDecl::getCanonicalDecl()); in getCanonicalDecl() 2166 const CXXMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function 2167 return const_cast<CXXMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 2608 *getCanonicalDecl()->getTrailingObjects<ExplicitSpecifier>() = ES; in setExplicitSpecifier() [all …]
|
H A D | DeclTemplate.h | 835 RedeclarableTemplateDecl *getCanonicalDecl() override { in getCanonicalDecl() function 838 const RedeclarableTemplateDecl *getCanonicalDecl() const { in getCanonicalDecl() function 1018 FunctionTemplateDecl *getCanonicalDecl() override { 1020 RedeclarableTemplateDecl::getCanonicalDecl()); 1022 const FunctionTemplateDecl *getCanonicalDecl() const { 1024 RedeclarableTemplateDecl::getCanonicalDecl()); 2314 ClassTemplateDecl *getCanonicalDecl() override { 2316 RedeclarableTemplateDecl::getCanonicalDecl()); 2318 const ClassTemplateDecl *getCanonicalDecl() const { 2320 RedeclarableTemplateDecl::getCanonicalDecl()); [all …]
|
H A D | Decl.h | 639 NamespaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function 640 const NamespaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() function 1236 VarDecl *getCanonicalDecl() override; 1237 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function 1238 return const_cast<VarDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 2340 DeclAsWritten->getCanonicalDecl()->isDefaulted()); in isUserProvided() 2466 return getCanonicalDecl()->FunctionDeclBits.IsDeleted; in isDeleted() 2563 return getCanonicalDecl()->FunctionDeclBits.IsMultiVersion; in isMultiVersion() 2569 getCanonicalDecl()->FunctionDeclBits.IsMultiVersion = V; 2575 getCanonicalDecl() [all …]
|
H A D | GlobalDecl.h | 94 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl() function 96 CanonGD.Value.setPointer(Value.getPointer()->getCanonicalDecl()); in getCanonicalDecl()
|
H A D | DeclObjC.h | 241 ObjCMethodDecl *getCanonicalDecl() override; 242 const ObjCMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function 243 return const_cast<ObjCMethodDecl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 1913 ObjCInterfaceDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function 1914 const ObjCInterfaceDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() function 1989 ObjCIvarDecl *getCanonicalDecl() override { in getCanonicalDecl() function 1990 return cast<ObjCIvarDecl>(FieldDecl::getCanonicalDecl()); in getCanonicalDecl() 1992 const ObjCIvarDecl *getCanonicalDecl() const { in getCanonicalDecl() function 1993 return const_cast<ObjCIvarDecl *>(this)->getCanonicalDecl(); in getCanonicalDecl() 2294 ObjCProtocolDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() function [all …]
|
H A D | DeclBase.h | 614 void setIsUsed() { getCanonicalDecl()->Used = true; } in setIsUsed() 967 virtual Decl *getCanonicalDecl() { return this; } in getCanonicalDecl() function 968 const Decl *getCanonicalDecl() const { in getCanonicalDecl() function 969 return const_cast<Decl*>(this)->getCanonicalDecl(); in getCanonicalDecl() 973 bool isCanonicalDecl() const { return getCanonicalDecl() == this; } in isCanonicalDecl() 1281 return D1->getCanonicalDecl() == D2->getCanonicalDecl(); in declaresSameEntity()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaAccess.cpp | 120 Records.push_back(Record->getCanonicalDecl()); in EffectiveContext() 124 Functions.push_back(Function->getCanonicalDecl()); in EffectiveContext() 140 R = R->getCanonicalDecl(); in includesClass() 238 InstanceContext = (IC ? cast<CXXRecordDecl>(IC)->getCanonicalDecl() in resolveInstanceContext() 253 return namingClass->getCanonicalDecl(); in getEffectiveNamingClass() 268 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize() 302 assert(Derived->getCanonicalDecl() == Derived); in IsDerivedFromInclusive() 303 assert(Target->getCanonicalDecl() == Target); in IsDerivedFromInclusive() 334 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive() 485 if (Friend == CTD->getCanonicalDecl()) in MatchesFriend() [all …]
|
H A D | SemaExprMember.cpp | 37 return !Bases.count(Base->getCanonicalDecl()); in isProvablyNotDerivedFrom() 133 Classes.insert(R->getCanonicalDecl()); in ClassifyImplicitMemberAccess() 188 contextClass = MD->getParent()->getCanonicalDecl(); in ClassifyImplicitMemberAccess() 202 contextClass->getCanonicalDecl() != in ClassifyImplicitMemberAccess() 203 R.getNamingClass()->getCanonicalDecl()) { in ClassifyImplicitMemberAccess() 208 Classes.insert(R.getNamingClass()->getCanonicalDecl()); in ClassifyImplicitMemberAccess() 640 CXXRecordDecl *MemberRecord = cast<CXXRecordDecl>(DC)->getCanonicalDecl(); in CheckQualifiedMemberReference() 641 if (BaseRecord->getCanonicalDecl() == MemberRecord || in CheckQualifiedMemberReference()
|
H A D | HLSLExternalSemaSource.cpp | 410 (void)HLSLNamespace->getCanonicalDecl()->decls_begin(); in InitializeSema() 523 Completions.insert(std::make_pair(Record->getCanonicalDecl(), Fn)); in onCompletion() 535 Record = Record->getCanonicalDecl(); in CompleteType()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | DirectIvarAssignment.cpp | 151 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()
|
H A D | NoReturnFunctionChecker.cpp | 93 MD = MD->getCanonicalDecl(); in checkPostObjCMessage()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGRecordLayout.h | 203 FD = FD->getCanonicalDecl(); in getLLVMFieldNo() 228 FD = FD->getCanonicalDecl(); in getBitFieldInfo()
|
H A D | CGDebugInfo.cpp | 1805 Var = Var->getCanonicalDecl(); in CreateRecordStaticField() 1832 StaticDataMemberCache[Var->getCanonicalDecl()].reset(GV); in CreateRecordStaticField() 1907 auto MI = StaticDataMemberCache.find(V->getCanonicalDecl()); in CollectRecordFields() 2092 if (Method->getCanonicalDecl()->isDeleted()) in CreateCXXMemberFunction() 2133 SPCache[Method->getCanonicalDecl()].reset(SP); in CreateCXXMemberFunction() 2169 auto MI = SPCache.find(Method->getCanonicalDecl()); in CollectCXXMemberFunctions() 3993 const auto *FD = cast<FunctionDecl>(GD.getCanonicalDecl().getDecl()); in collectFunctionDeclProps() 4129 const FunctionDecl *CanonDecl = FD->getCanonicalDecl(); in getFunctionFwdDeclOrStub() 4162 std::make_tuple(cast<VarDecl>(VD->getCanonicalDecl())), in getGlobalVariableForwardDeclaration() 4175 auto I = DeclCache.find(D->getCanonicalDecl()); in getDeclarationOrDefinition() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderDecl.cpp | 546 D->getCanonicalDecl()->Used |= IsDeclMarkedUsed; in Visit() 807 EnumDecl *&OldDef = Reader.EnumDefinitions[ED->getCanonicalDecl()]; in VisitEnumDecl() 811 for (auto *D : merged_redecls(ED->getCanonicalDecl())) { in VisitEnumDecl() 869 RecordDecl *Canon = static_cast<RecordDecl *>(RD->getCanonicalDecl()); in VisitRecordDecl() 1297 ObjCInterfaceDecl *Canon = ID->getCanonicalDecl(); in VisitObjCInterfaceDecl() 1306 ID->getCanonicalDecl()->Data = ID->Data; in VisitObjCInterfaceDecl() 1318 ID->Data = ID->getCanonicalDecl()->Data; in VisitObjCInterfaceDecl() 1339 IVD->getContainingInterface()->getCanonicalDecl(); in VisitObjCIvarDecl() 1407 ObjCProtocolDecl *Canon = PD->getCanonicalDecl(); in VisitObjCProtocolDecl() 1416 PD->getCanonicalDecl()->Data = PD->Data; in VisitObjCProtocolDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ThreadSafetyCommon.cpp | 310 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr() 317 const Decl *Canonical = Ctx->AttrDecl->getCanonicalDecl(); in translateDeclRefExpr() 319 ? (cast<FunctionDecl>(D)->getCanonicalDecl() == Canonical) in translateDeclRefExpr() 320 : (cast<ObjCMethodDecl>(D)->getCanonicalDecl() == Canonical)) { in translateDeclRefExpr() 335 ? cast<FunctionDecl>(D)->getCanonicalDecl()->getParamDecl(I) in translateDeclRefExpr() 336 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I); in translateDeclRefExpr() 381 D = D->getCanonicalDecl(); in getFirstVirtualDecl() 396 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr() 411 const auto *D = cast<ObjCIvarDecl>(IVRE->getDecl()->getCanonicalDecl()); in translateObjCIVarRefExpr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | LoopUnrolling.cpp | 186 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isCapturedByReference() 197 if (D->getCanonicalDecl() == VD) in isFoundInStmt() 210 const VarDecl *VD = cast<VarDecl>(DR->getDecl()->getCanonicalDecl()); in isPossiblyEscaped()
|
H A D | Store.cpp | 249 return Expected->getCanonicalDecl() == RD->getCanonicalDecl(); in regionMatchesCXXRecordType()
|
/freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
H A D | CodeCompletion.cpp | 151 if (Fun->getParent()->getCanonicalDecl() == in handleDeclaration() 152 CCC.getBaseType()->getAsCXXRecordDecl()->getCanonicalDecl()) { in handleDeclaration()
|
/freebsd/contrib/llvm-project/lldb/tools/lldb-instr/ |
H A D | Instrument.cpp | 93 if (Decl == Decl->getCanonicalDecl()) in ShouldSkip()
|