Home
last modified time | relevance | path

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

123456

/llvm-project-15.0.7/clang/lib/AST/
H A DCXXInheritance.cpp76 if (getCanonicalDecl() == Base->getCanonicalDecl()) in isDerivedFrom()
81 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 DMicrosoftCXXABI.cpp166 TD = TD->getCanonicalDecl(); in addTypedefNameForUnnamedTagDecl()
167 DD = DD->getCanonicalDecl(); in addTypedefNameForUnnamedTagDecl()
175 const_cast<TagDecl *>(TD->getCanonicalDecl())); in getTypedefNameForUnnamedTagDecl()
180 TD = TD->getCanonicalDecl(); in addDeclaratorForUnnamedTagDecl()
181 DD = cast<DeclaratorDecl>(DD->getCanonicalDecl()); in addDeclaratorForUnnamedTagDecl()
189 const_cast<TagDecl *>(TD->getCanonicalDecl())); in getDeclaratorForUnnamedTagDecl()
H A DComparisonCategories.cpp81 DeclContextLookupResult Lookup = Record->getCanonicalDecl()->lookup( in lookupValueInfo()
133 const auto *CanonRD = RD->getCanonicalDecl(); in lookupInfoForType()
136 if (CanonRD == Info.Record->getCanonicalDecl()) in lookupInfoForType()
/llvm-project-15.0.7/clang-tools-extra/clang-move/
H A DHelperDeclRefGraph.cpp57 F = F->getCanonicalDecl(); in getOrInsertNode()
67 auto I = DeclMap.find(D->getCanonicalDecl()); in getNode()
122 getOutmostClassOrFunDecl(DC->getCanonicalDecl()), in run()
123 getOutmostClassOrFunDecl(FuncRef->getDecl()->getCanonicalDecl())); in run()
131 RG->addEdge(getOutmostClassOrFunDecl(DC->getCanonicalDecl()), UsedClass); in run()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DParentVirtualCallCheck.cpp28 if (Parent.getCanonicalDecl() == ThisClass.getCanonicalDecl()) in isParentOf()
30 const CXXRecordDecl *ParentCanonicalDecl = Parent.getCanonicalDecl(); in isParentOf()
35 return ParentCanonicalDecl == BaseDecl->getCanonicalDecl(); in isParentOf()
55 if (RecordDeclType->getCanonicalDecl()->isDerivedFrom(&GrandParent)) in getParentsByGrandParent()
H A DVirtualNearMissCheck.cpp99 DRD->getCanonicalDecl() == DerivedMD->getParent()->getCanonicalDecl(); in checkOverridingFunctionReturnType()
175 if (BaseMD->getCanonicalDecl() == OverriddenMD->getCanonicalDecl()) in checkOverrideByDerivedMethod()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h501 CXXRecordDecl *getCanonicalDecl() override { in getCanonicalDecl() function
505 const CXXRecordDecl *getCanonicalDecl() const { in getCanonicalDecl() function
2066 CXXMethodDecl *getCanonicalDecl() override { in getCanonicalDecl() function
2069 const CXXMethodDecl *getCanonicalDecl() const { in getCanonicalDecl() function
2735 return getCanonicalDecl()->OperatorDelete; in getOperatorDelete()
2792 return getCanonicalDecl()->ExplicitSpec; in getExplicitSpecifier()
2796 return getCanonicalDecl()->ExplicitSpec; in getExplicitSpecifier()
3275 UsingShadowDecl *getCanonicalDecl() override { in getCanonicalDecl() function
3477 UsingDecl *getCanonicalDecl() override { in getCanonicalDecl() function
3480 const UsingDecl *getCanonicalDecl() const { in getCanonicalDecl() function
[all …]
H A DDeclTemplate.h874 RedeclarableTemplateDecl *getCanonicalDecl() override { in getCanonicalDecl() function
1058 FunctionTemplateDecl *getCanonicalDecl() override {
1062 const FunctionTemplateDecl *getCanonicalDecl() const {
2350 ClassTemplateDecl *getCanonicalDecl() override {
2354 const ClassTemplateDecl *getCanonicalDecl() const {
2572 TypeAliasTemplateDecl *getCanonicalDecl() override {
3181 VarTemplateDecl *getCanonicalDecl() override {
3184 const VarTemplateDecl *getCanonicalDecl() const {
3290 ConceptDecl *getCanonicalDecl() override {
3293 const ConceptDecl *getCanonicalDecl() const {
[all …]
H A DDecl.h644 NamespaceDecl *getCanonicalDecl() override { in getCanonicalDecl() function
647 const NamespaceDecl *getCanonicalDecl() const { in getCanonicalDecl() function
1203 VarDecl *getCanonicalDecl() override;
1204 const VarDecl *getCanonicalDecl() const { in getCanonicalDecl() function
2506 FunctionDecl *getCanonicalDecl() override;
2507 const FunctionDecl *getCanonicalDecl() const { in getCanonicalDecl() function
3459 TagDecl *getCanonicalDecl() override;
3460 const TagDecl *getCanonicalDecl() const { in getCanonicalDecl() function
3727 EnumDecl *getCanonicalDecl() override { in getCanonicalDecl() function
3728 return cast<EnumDecl>(TagDecl::getCanonicalDecl()); in getCanonicalDecl()
[all …]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIvarInvalidationChecker.cpp251 cast<ObjCMethodDecl>(MDI->getCanonicalDecl())); in containsInvalidationMethod()
290 const ObjCIvarDecl *I = cast<ObjCIvarDecl>(Iv->getCanonicalDecl()); in trackIvar()
397 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit()
404 SetterD = SetterD->getCanonicalDecl(); in visit()
410 GetterD = GetterD->getCanonicalDecl(); in visit()
601 markInvalidated(cast<ObjCIvarDecl>(D->getCanonicalDecl())); in checkObjCIvarRefExpr()
608 MD = MD->getCanonicalDecl(); in checkObjCMessageExpr()
621 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
632 MD = MD->getCanonicalDecl(); in checkObjCPropertyRefExpr()
704 MD = MD->getCanonicalDecl(); in VisitObjCMessageExpr()
H A 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()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedParametersCheck.cpp83 return Index[Fn->getCanonicalDecl()].Calls; in getFnCalls()
88 return Index[Fn->getCanonicalDecl()].OtherRefs; in getOtherRefs()
95 Fn = Fn->getCanonicalDecl(); in WalkUpFromDeclRefExpr()
104 Fn = Fn->getCanonicalDecl(); in WalkUpFromCallExpr()
H A DUnusedUsingDeclsCheck.cpp91 const auto *TargetDecl = UsingShadow->getTargetDecl()->getCanonicalDecl(); in check()
151 removeFromFoundDecls(USD->getTargetDecl()->getCanonicalDecl()); in check()
165 if (Context.UsingTargetDecls.contains(D->getCanonicalDecl())) in removeFromFoundDecls()
H A DUniqueptrResetReleaseCheck.cpp87 if (LeftDeleter->getCanonicalDecl() == RightDeleter->getCanonicalDecl()) { in areDeletersCompatible()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAccess.cpp122 Records.push_back(Record->getCanonicalDecl()); in EffectiveContext()
126 Functions.push_back(Function->getCanonicalDecl()); in EffectiveContext()
142 R = R->getCanonicalDecl(); in includesClass()
245 return namingClass->getCanonicalDecl(); in getEffectiveNamingClass()
260 DeclaringClass = DeclaringClass->getCanonicalDecl(); in initialize()
294 assert(Derived->getCanonicalDecl() == Derived); in IsDerivedFromInclusive()
295 assert(Target->getCanonicalDecl() == Target); in IsDerivedFromInclusive()
326 RD = RD->getCanonicalDecl(); in IsDerivedFromInclusive()
477 if (Friend == CTD->getCanonicalDecl()) in MatchesFriend()
539 FTD = FTD->getCanonicalDecl(); in MatchesFriend()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DSlicingCheck.cpp77 if (DerivedDecl.getCanonicalDecl() == BaseDecl.getCanonicalDecl()) in diagnoseSlicedOverriddenMethods()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp534 D->getCanonicalDecl()->Used |= IsDeclMarkedUsed; in Visit()
1229 ID->getCanonicalDecl()->Data = ID->Data; in VisitObjCInterfaceDecl()
1241 ID->Data = ID->getCanonicalDecl()->Data; in VisitObjCInterfaceDecl()
1334 PD->getCanonicalDecl()->Data = PD->Data; in VisitObjCProtocolDecl()
1339 PD->Data = PD->getCanonicalDecl()->Data; in VisitObjCProtocolDecl()
1987 CXXRecordDecl *Canon = D->getCanonicalDecl(); in ReadCXXRecordDefinition()
2231 D->Common = D->getCanonicalDecl()->Common; in VisitRedeclarableTemplateDecl()
2618 D->First = FirstDecl->getCanonicalDecl(); in VisitRedeclarable()
2714 T *ExistingCanon = Existing->getCanonicalDecl(); in mergeRedeclarable()
2715 T *DCanon = D->getCanonicalDecl(); in mergeRedeclarable()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DDontModifyStdNamespaceCheck.cpp129 assert(NS->getCanonicalDecl() == LexNS->getCanonicalDecl() && in check()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGRecordLayout.h198 FD = FD->getCanonicalDecl(); in getLLVMFieldNo()
223 FD = FD->getCanonicalDecl(); in getBitFieldInfo()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexingContext.cpp297 static const Decl *getCanonicalDecl(const Decl *D) { in getCanonicalDecl() function
298 D = D->getCanonicalDecl(); in getCanonicalDecl()
410 D = getCanonicalDecl(D); in handleDeclOccurrence()
413 Parent = getCanonicalDecl(Parent); in handleDeclOccurrence()
446 Rel.RelatedSymbol->getCanonicalDecl())); in handleDeclOccurrence()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DRename.cpp110 return Method->getCanonicalDecl(); in canonicalRenameDecl()
123 return Field->getCanonicalDecl(); in canonicalRenameDecl()
127 return Field->getCanonicalDecl(); in canonicalRenameDecl()
130 return Candidate->getCanonicalDecl(); in canonicalRenameDecl()
136 return VD->getCanonicalDecl(); in canonicalRenameDecl()
138 return dyn_cast<NamedDecl>(D->getCanonicalDecl()); in canonicalRenameDecl()
415 if (D->getCanonicalDecl() != RenamedDecl.getCanonicalDecl()) in lookupSiblingsWithinContext()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DConvertMemberFunctionsToStatic.cpp54 return InnerMatcher.matches(*Node.getCanonicalDecl(), Finder, Builder); in AST_MATCHER_P()
142 const CXXMethodDecl *Declaration = Definition->getCanonicalDecl(); in check()
H A DMakeMemberFunctionConstCheck.cpp49 return InnerMatcher.matches(*Node.getCanonicalDecl(), Finder, Builder); in AST_MATCHER_P()
258 const auto *Declaration = Definition->getCanonicalDecl(); in check()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp300 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr()
307 const Decl *Canonical = Ctx->AttrDecl->getCanonicalDecl(); in translateDeclRefExpr()
309 ? (cast<FunctionDecl>(D)->getCanonicalDecl() == Canonical) in translateDeclRefExpr()
310 : (cast<ObjCMethodDecl>(D)->getCanonicalDecl() == Canonical)) { in translateDeclRefExpr()
319 ? cast<FunctionDecl>(D)->getCanonicalDecl()->getParamDecl(I) in translateDeclRefExpr()
320 : cast<ObjCMethodDecl>(D)->getCanonicalDecl()->getParamDecl(I); in translateDeclRefExpr()
361 D = D->getCanonicalDecl(); in getFirstVirtualDecl()
376 const auto *D = cast<ValueDecl>(ME->getMemberDecl()->getCanonicalDecl()); in translateMemberExpr()
391 const auto *D = cast<ObjCIvarDecl>(IVRE->getDecl()->getCanonicalDecl()); in translateObjCIVarRefExpr()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DDefineInline.cpp96 const Decl *D = DR->getCanonicalDecl(); in checkDeclsAreVisible()
243 ParamToNewName[DestParam->getCanonicalDecl()] = std::move(NewName); in renameParameters()
276 llvm::cast<NamedDecl>(Ref.Targets.front()->getCanonicalDecl()); in renameParameters()
329 auto *CanonDecl = FD->getCanonicalDecl(); in findTarget()

123456