Home
last modified time | relevance | path

Searched refs:getTemplatedDecl (Results 1 – 25 of 88) sorted by relevance

1234

/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp135 addUSRsOfCtorDtors(TemplateDecl->getTemplatedDecl()); in handleClassTemplateDecl()
140 USRSet.insert(getUSRForDecl(FTD->getTemplatedDecl())); in handleFunctionTemplateDecl()
147 USRSet.insert(getUSRForDecl(VTD->getTemplatedDecl())); in handleVarTemplateDecl()
172 dyn_cast<CXXConstructorDecl>(FTD->getTemplatedDecl())) in addUSRsOfCtorDtors()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTypeHierarchyTests.cpp208 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Child"))->getTemplatedDecl(); in TEST()
217 CTS->getSpecializedTemplate()->getTemplatedDecl() == ClassTemplate &&
254 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Parent"))->getTemplatedDecl(); in TEST()
283 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Child"))->getTemplatedDecl(); in TEST()
310 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Parent"))->getTemplatedDecl(); in TEST()
312 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Child1"))->getTemplatedDecl(); in TEST()
314 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Child2"))->getTemplatedDecl(); in TEST()
316 dyn_cast<ClassTemplateDecl>(&findDecl(AST, "Child3"))->getTemplatedDecl(); in TEST()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterGenericRedeclTest.cpp151 ASSERT_TRUE(PrevT->getTemplatedDecl()); in CheckPreviousDecl()
152 ASSERT_TRUE(CurrentT->getTemplatedDecl()); in CheckPreviousDecl()
153 EXPECT_EQ(CurrentT->getTemplatedDecl()->getPreviousDecl(), in CheckPreviousDecl()
154 PrevT->getTemplatedDecl()); in CheckPreviousDecl()
195 EXPECT_TRUE(ToT->getTemplatedDecl()); in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition()
211 EXPECT_TRUE(ToT->getTemplatedDecl()); in TypedTest_DefinitionShouldBeImportedAsADefinition()
322 EXPECT_TRUE(ToT0->getTemplatedDecl()); in TypedTest_ImportDefinitions()
H A DASTImporterTest.cpp1242 auto ToTemplated = To->getTemplatedDecl(); in TEST_P()
4129 EXPECT_EQ(ToDecl->getTemplatedDecl(), in TEST_P()
4576 FromD->getTemplatedDecl()); in TEST_P()
4580 ToD->getTemplatedDecl()); in TEST_P()
4603 FromD->getTemplatedDecl()); in TEST_P()
4611 ToD->getTemplatedDecl()); in TEST_P()
7580 FromDGCopyCtor->getTemplatedDecl()); in TEST_P()
7598 ToDGCtor->getTemplatedDecl()); in TEST_P()
7600 ToDGCtor->getTemplatedDecl()); in TEST_P()
7603 ToDGCopyCtor->getTemplatedDecl()); in TEST_P()
[all …]
/llvm-project-15.0.7/clang/lib/AST/
H A DComment.cpp267 const FunctionDecl *FD = FTD->getTemplatedDecl(); in fill()
321 if (const VarDecl *VD = VTD->getTemplatedDecl()) in fill()
338 if (TypeAliasDecl *TAD = TAT->getTemplatedDecl()) in fill()
H A DDeclPrinter.cpp461 if (TD->getTemplatedDecl()->isThisDeclarationADefinition()) in VisitDeclContext()
486 cast<FunctionTemplateDecl>(*D)->getTemplatedDecl()->doesThisDeclarationHaveABody()))) in VisitDeclContext()
1155 } else if (auto *TD = D->getTemplatedDecl()) in VisitTemplateDecl()
1165 prettyPrintPragmas(D->getTemplatedDecl()); in VisitFunctionTemplateDecl()
1167 if (const FunctionDecl *FD = D->getTemplatedDecl()) { in VisitFunctionTemplateDecl()
1175 if (D->getTemplatedDecl()->hasAttr<OMPDeclareTargetDeclAttr>()) in VisitFunctionTemplateDecl()
1181 !isa<CXXDeductionGuideDecl>(D->getTemplatedDecl())) { in VisitFunctionTemplateDecl()
1182 FunctionDecl *PrevDecl = D->getTemplatedDecl(); in VisitFunctionTemplateDecl()
H A DDecl.cpp636 D = TD->getTemplatedDecl(); in getStorageClass()
1009 explicitSpecSuppressor = spec->getTemplate()->getTemplatedDecl(); in getLVForClassMember()
1023 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
1062 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
1185 const auto *TD = spec->getSpecializedTemplate()->getTemplatedDecl(); in getExplicitVisibilityAux()
1235 return getVisibilityOf(TD->getTemplatedDecl(), kind); in getExplicitVisibilityAux()
2614 return getDefinitionOrSelf(VTD->getTemplatedDecl()); in getTemplateInstantiationPattern()
2639 return getDefinitionOrSelf(VarTemplate->getTemplatedDecl()); in getTemplateInstantiationPattern()
3861 return getDefinitionOrSelf(getPrimaryTemplate()->getTemplatedDecl()); in getTemplateInstantiationPattern()
3891 return getDefinitionOrSelf(Primary->getTemplatedDecl()); in getTemplateInstantiationPattern()
[all …]
H A DCXXInheritance.cpp259 BaseRecord = TD->getTemplatedDecl(); in lookupInBases()
426 CXXRecordDecl *RD = TD->getTemplatedDecl(); in findOrdinaryMemberInDependentClasses()
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexDecl.cpp68 if (const NamedDecl *TTD = TD->getTemplatedDecl()) in handleTemplateArgumentLoc()
217 const CXXRecordDecl *Pattern = CTD->getTemplatedDecl(); in gatherTemplatePseudoOverrides()
221 ND = CTD->getTemplatedDecl(); in gatherTemplatePseudoOverrides()
257 Base->getTemplatedDecl())); in VisitFunctionDecl()
285 IndexCtx.handleReference(Guide->getDeducedTemplate()->getTemplatedDecl(), in VisitFunctionDecl()
721 const NamedDecl *Parent = D->getTemplatedDecl(); in VisitTemplateDecl()
H A DIndexingContext.cpp217 return SD->getSpecializedTemplate()->getTemplatedDecl(); in adjustTemplateImplicitInstantiation()
300 if (auto TTD = TD->getTemplatedDecl()) { in getCanonicalDecl()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DCxxModuleHandler.cpp277 new_class_template->getTemplatedDecl()->getTagKind(), in tryInstantiateStdTemplate()
279 new_class_template->getTemplatedDecl()->getLocation(), in tryInstantiateStdTemplate()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTLambda.h57 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl())) in isLambdaConversionOperator()
H A DDeclTemplate.h441 NamedDecl *getTemplatedDecl() const { return TemplatedDecl; } in getTemplatedDecl() function
1043 FunctionDecl *getTemplatedDecl() const {
1050 return getTemplatedDecl()->isThisDeclarationADefinition();
2321 CXXRecordDecl *getTemplatedDecl() const {
2328 return getTemplatedDecl()->isThisDeclarationADefinition();
2567 TypeAliasDecl *getTemplatedDecl() const {
3151 VarDecl *getTemplatedDecl() const {
3158 return getTemplatedDecl()->isThisDeclarationADefinition();
H A DGlobalDecl.h137 ->getTemplatedDecl() in getKernelReferenceKind()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DExpectedTypes.cpp48 D = Template->getTemplatedDecl(); in typeOfCompletion()
H A DFindTarget.cpp72 return Spec->getSpecializedTemplate()->getTemplatedDecl(); in getTemplatePattern()
399 Outer.add(TD->getTemplatedDecl(), Flags | Rel::TemplatePattern); in add()
439 TST->getTemplateName().getAsTemplateDecl()->getTemplatedDecl(), in add()
454 Outer.add(TD->getTemplatedDecl(), Flags | Rel::TemplatePattern); in add()
H A DHeuristicResolver.cpp55 return TD->getTemplatedDecl(); in resolveTypeToRecordDecl()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexCXX.cpp58 return MakeCXCursor(Template->getTemplatedDecl(), getCursorTU(C)).kind; in clang_getTemplateCursorKind()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardingReferenceOverloadCheck.cpp28 Spec->getTemplateName().getAsTemplateDecl()->getTemplatedDecl(); in AST_MATCHER()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaAccess.cpp96 DC = cast<DeclContext>(DGD->getDeducedTemplate()->getTemplatedDecl()); in EffectiveContext()
416 Context->getTemplatedDecl(), in MightInstantiateTo()
417 Friend->getTemplatedDecl()); in MightInstantiateTo()
1089 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
1494 if (isa<DeclContext>(TD->getTemplatedDecl())) in HandleDelayedAccessCheck()
1495 DC = cast<DeclContext>(TD->getTemplatedDecl()); in HandleDelayedAccessCheck()
H A DSemaTemplate.cpp906 D = Temp->getTemplatedDecl(); in AdjustDeclIfTemplate()
2146 CXXRecordDecl *Primary = Template->getTemplatedDecl();
2545 ->getTemplatedDecl()) in DeclareImplicitDeductionGuides()
3874 ClassTemplate->getTemplatedDecl()->getBeginLoc(), in CheckTemplateIdType()
3882 ClassTemplate->getTemplatedDecl()->hasAttrs()) { in CheckTemplateIdType()
8399 Diag(ClassTemplate->getTemplatedDecl()->getLocation(), in ActOnClassTemplateSpecialization()
9119 I.getPair(), FunTmpl->getTemplatedDecl(), in CheckFunctionTemplateSpecialization()
9135 I.getPair(), FunTmpl->getTemplatedDecl(), in CheckFunctionTemplateSpecialization()
9644 Diag(ClassTemplate->getTemplatedDecl()->getLocation(), in ActOnExplicitInstantiation()
10292 .set(P.getPair(), FunTmpl->getTemplatedDecl(), in ActOnExplicitInstantiation()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DInsertionPoint.cpp36 NonTemplate = TD->getTemplatedDecl(); in insertionDecl()
H A DRename.cpp88 VarTemplate->getSpecializedTemplate()->getTemplatedDecl()); in canonicalRenameDecl()
90 if (const NamedDecl *TemplatedDecl = Template->getTemplatedDecl()) in canonicalRenameDecl()
96 ->getTemplatedDecl()); in canonicalRenameDecl()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DASTConsumers.cpp104 InnerD = TD->getTemplatedDecl(); in print()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp251 Record = TD->getTemplatedDecl(); in findDeclInBases()
328 if (const NamedDecl *TemplDecl = ClassDecl->getTemplatedDecl()) in check()

1234