Home
last modified time | relevance | path

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

12

/external/clang/tools/libclang/
DIndexDecl.cpp280 IndexCtx.indexDeclContext(D->getTemplatedDecl()); in VisitClassTemplateDecl()
297 FunctionDecl *FD = D->getTemplatedDecl(); in VisitFunctionTemplateDecl()
310 IndexCtx.indexTypeSourceInfo(D->getTemplatedDecl()->getTypeSourceInfo(), D); in VisitTypeAliasTemplateDecl()
DCIndexCXX.cpp61 return MakeCXCursor(Template->getTemplatedDecl(), getCursorTU(C)).kind; in clang_getTemplateCursorKind()
DIndexingContext.cpp637 return handleCXXRecordDecl(D->getTemplatedDecl(), D); in handleClassTemplate()
842 DC = ClassTempl->getTemplatedDecl(); in getEntityContainer()
845 DC = FuncTempl->getTemplatedDecl(); in getEntityContainer()
1055 cast<FunctionTemplateDecl>(D)->getTemplatedDecl())) { in getEntityInfo()
DCXType.cpp172 if (TypeSourceInfo *TSInfo = FTD->getTemplatedDecl()->getTypeSourceInfo()) in clang_getCursorType()
174 return MakeCXType(FTD->getTemplatedDecl()->getType(), TU); in clang_getCursorType()
/external/clang/include/clang/AST/
DASTLambda.h58 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl())) in isLambdaConversionOperator()
DDeclTemplate.h258 NamedDecl *getTemplatedDecl() const { return TemplatedDecl; } in getTemplatedDecl() function
808 FunctionDecl *getTemplatedDecl() const {
815 return getTemplatedDecl()->isThisDeclarationADefinition();
1855 CXXRecordDecl *getTemplatedDecl() const {
1862 return getTemplatedDecl()->isThisDeclarationADefinition();
2118 TypeAliasDecl *getTemplatedDecl() const {
2690 VarDecl *getTemplatedDecl() const {
2697 return getTemplatedDecl()->isThisDeclarationADefinition();
DDataRecursiveASTVisitor.h1402 CXXRecordDecl *TempDecl = D->getTemplatedDecl();
1451 VarDecl *TempDecl = D->getTemplatedDecl();
1502 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
1519 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
1549 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
DRecursiveASTVisitor.h1528 TRY_TO(TraverseDecl(D->getTemplatedDecl())); \
1553 TRY_TO(TraverseDecl(D->getTemplatedDecl())); in DEF_TRAVERSE_TMPL_DECL()
1583 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
/external/clang/lib/AST/
DDecl.cpp908 explicitSpecSuppressor = spec->getTemplate()->getTemplatedDecl(); in getLVForClassMember()
923 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
960 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
1032 return getVisibilityOf(spec->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1050 return getVisibilityOf(VTSD->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1061 return getVisibilityOf(templateInfo->getTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1075 return getVisibilityOf(TD->getTemplatedDecl(), kind); in getExplicitVisibilityAux()
1445 return FunctionTemplate->getTemplatedDecl() in declarationReplaces()
1446 ->declarationReplaces(OldFunctionTemplate->getTemplatedDecl()); in declarationReplaces()
2960 assert(getPrimaryTemplate()->getTemplatedDecl()->getBody() && in getTemplateInstantiationPattern()
[all …]
DComment.cpp193 const FunctionDecl *FD = FTD->getTemplatedDecl(); in fill()
DDeclCXX.cpp438 D = FunTmpl->getTemplatedDecl(); in addedMember()
995 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1010 return cast<CXXMethodDecl>(InvokerTemplate->getTemplatedDecl()); in getLambdaStaticInvoker()
1571 return StaticInvoker == this->getPrimaryTemplate()->getTemplatedDecl(); in isLambdaStaticInvoker()
DASTImporter.cpp1265 return Context.IsStructurallyEquivalent(D1->getTemplatedDecl(), in IsStructurallyEquivalent()
1266 D2->getTemplatedDecl()); in IsStructurallyEquivalent()
3954 = cast_or_null<CXXRecordDecl>(D->getTemplatedDecl()->getDefinition()); in VisitClassTemplateDecl()
3955 if (Definition && Definition != D->getTemplatedDecl()) { in VisitClassTemplateDecl()
3987 Importer.Imported(D->getTemplatedDecl(), in VisitClassTemplateDecl()
3988 FoundTemplate->getTemplatedDecl()); in VisitClassTemplateDecl()
4006 CXXRecordDecl *DTemplated = D->getTemplatedDecl(); in VisitClassTemplateDecl()
4143 cast_or_null<VarDecl>(D->getTemplatedDecl()->getDefinition()); in VisitVarTemplateDecl()
4144 if (Definition && Definition != D->getTemplatedDecl()) { in VisitVarTemplateDecl()
4173 Importer.Imported(D->getTemplatedDecl(), in VisitVarTemplateDecl()
[all …]
DItaniumMangle.cpp96 return ftd->getTemplatedDecl(); in getStructor()
504 FD = PrimaryTemplate->getTemplatedDecl(); in mangleFunctionEncoding()
643 mangleUnscopedName(ND->getTemplatedDecl()); in mangleUnscopedTemplateName()
1564 mangleUnqualifiedName(ND->getTemplatedDecl()); in mangleTemplatePrefix()
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp406 return FunctionTemplate->getTemplatedDecl(); in getFunction()
418 return FunctionTemplate->getTemplatedDecl()->getType() in getFunctionType()
DSemaTemplate.cpp468 D = Temp->getTemplatedDecl(); in AdjustDeclIfTemplate()
986 RecordDecl *PrevRecordDecl = PrevClassTemplate->getTemplatedDecl(); in CheckClassTemplate()
1052 PrevClassTemplate->getTemplatedDecl() : nullptr, in CheckClassTemplate()
1103 mergeDeclAttributes(NewClass, PrevClassTemplate->getTemplatedDecl()); in CheckClassTemplate()
2034 TypeAliasDecl *Pattern = AliasTemplate->getTemplatedDecl(); in CheckTemplateIdType()
2128 ClassTemplate->getTemplatedDecl()->getTagKind(), in CheckTemplateIdType()
2130 ClassTemplate->getTemplatedDecl()->getLocStart(), in CheckTemplateIdType()
2454 VarDecl *Templated = VarTemplate->getTemplatedDecl(); in ActOnVarTemplateSpecialization()
2636 VarTemplate->getTemplatedDecl(), in ActOnVarTemplateSpecialization()
2677 VarDecl *InstantiationPattern = Template->getTemplatedDecl(); in CheckVarTemplateId()
[all …]
DSemaTemplateInstantiateDecl.cpp340 TypeAliasDecl *Pattern = D->getTemplatedDecl(); in VisitTypeAliasTemplateDecl()
810 CXXRecordDecl *Pattern = D->getTemplatedDecl(); in VisitClassTemplateDecl()
831 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
861 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
866 << D->getTemplatedDecl()->getTagKind() << Pattern->getDeclName() << DC in VisitClassTemplateDecl()
1006 assert(D->getTemplatedDecl()->isStaticDataMember() && in VisitVarTemplateDecl()
1017 VarDecl *Pattern = D->getTemplatedDecl(); in VisitVarTemplateDecl()
1099 if (CXXMethodDecl *DMethod = dyn_cast<CXXMethodDecl>(D->getTemplatedDecl())) in VisitFunctionTemplateDecl()
1104 D->getTemplatedDecl(), in VisitFunctionTemplateDecl()
1123 !(isFriend && !D->getTemplatedDecl()->isThisDeclarationADefinition())) in VisitFunctionTemplateDecl()
[all …]
DSemaTemplateDeduction.cpp2513 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in SubstituteExplicitTemplateArguments()
2572 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
2804 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
2945 SubstDecl(FunctionTemplate->getTemplatedDecl(), Owner, in FinishTemplateArgumentDeduction()
3304 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3552 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3751 = cast<CXXConversionDecl>(ConversionTemplate->getTemplatedDecl()); in DeduceTemplateArguments()
4156 FunctionDecl *FD1 = FT1->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4157 FunctionDecl *FD2 = FT2->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4300 FunctionDecl *Function = FunTmpl->getTemplatedDecl(); in isVariadicFunctionTemplate()
[all …]
DSemaAccess.cpp397 Context->getTemplatedDecl(), in MightInstantiateTo()
398 Friend->getTemplatedDecl()); in MightInstantiateTo()
1076 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
1480 DC = cast<DeclContext>(TD->getTemplatedDecl()); in HandleDelayedAccessCheck()
DSemaOverload.cpp2959 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsInitializerListConstructorConversion()
3094 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsUserDefinedConversion()
3153 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in IsUserDefinedConversion()
4093 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in FindConversionForRefInit()
5265 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in collectViableConversionCandidates()
5368 Conversion = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in PerformContextualImplicitConversion()
5765 if (isa<CXXMethodDecl>(FunTmpl->getTemplatedDecl()) && in AddFunctionCandidates()
5766 !cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl())->isStatic()) in AddFunctionCandidates()
5796 assert(isa<CXXMethodDecl>(TD->getTemplatedDecl()) && in AddMethodCandidate()
5962 Candidate.Function = MethodTmpl->getTemplatedDecl(); in AddMethodTemplateCandidate()
[all …]
DSemaLookup.cpp730 = ConvTemplate->getTemplatedDecl()->getType()->getAs<FunctionProtoType>(); in LookupDirect()
1187 Entity = FromTemplate->getTemplatedDecl(); in getDefiningModule()
4462 D = FTD->getTemplatedDecl(); in ValidateCandidate()
4499 FD = FTD->getTemplatedDecl(); in ValidateCandidate()
4563 return getDefinitionToImport(TD->getTemplatedDecl()); in getDefinitionToImport()
DSemaCXXScopeSpec.cpp113 return ClassTemplate->getTemplatedDecl(); in computeDeclContext()
/external/clang/lib/Index/
DUSRGeneration.cpp297 VisitFunctionDecl(D->getTemplatedDecl()); in VisitFunctionTemplateDecl()
301 VisitTagDecl(D->getTemplatedDecl()); in VisitClassTemplateDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1447 if (!Template->getTemplatedDecl()) { in VisitCXXRecordDeclImpl()
1653 if (D->getTemplatedDecl()->TemplateOrInstantiation) { in VisitClassTemplateDecl()
1658 D->getTemplatedDecl(), D->getInjectedClassNameSpecialization()); in VisitClassTemplateDecl()
2034 auto *DPattern = D->getTemplatedDecl(); in mergeTemplatePattern()
2035 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2341 return isSameEntity(TemplateX->getTemplatedDecl(), in isSameEntity()
2342 TemplateY->getTemplatedDecl()) && in isSameEntity()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp115 return FunTmpl->getTemplatedDecl()->getBody(); in getBody()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp649 TemplateType->getTemplateName().getAsTemplateDecl()->getTemplatedDecl(); in getAsCXXRecordDecl()

12