Home
last modified time | relevance | path

Searched refs:getTemplatedDecl (Results 1 – 25 of 44) 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
800 FunctionDecl *getTemplatedDecl() const {
807 return getTemplatedDecl()->isThisDeclarationADefinition();
1856 CXXRecordDecl *getTemplatedDecl() const {
1863 return getTemplatedDecl()->isThisDeclarationADefinition();
2119 TypeAliasDecl *getTemplatedDecl() const {
2691 VarDecl *getTemplatedDecl() const {
2698 return getTemplatedDecl()->isThisDeclarationADefinition();
DDataRecursiveASTVisitor.h1413 CXXRecordDecl *TempDecl = D->getTemplatedDecl();
1462 VarDecl *TempDecl = D->getTemplatedDecl();
1513 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
1530 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
1560 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
DRecursiveASTVisitor.h1539 TRY_TO(TraverseDecl(D->getTemplatedDecl())); \
1564 TRY_TO(TraverseDecl(D->getTemplatedDecl())); in DEF_TRAVERSE_TMPL_DECL()
1594 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
/external/clang/lib/AST/
DDecl.cpp919 explicitSpecSuppressor = spec->getTemplate()->getTemplatedDecl(); in getLVForClassMember()
934 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
971 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
1056 return getVisibilityOf(spec->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1074 return getVisibilityOf(VTSD->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1085 return getVisibilityOf(templateInfo->getTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1099 return getVisibilityOf(TD->getTemplatedDecl(), kind); in getExplicitVisibilityAux()
1517 return FunctionTemplate->getTemplatedDecl()->declarationReplaces( in declarationReplaces()
1518 cast<FunctionTemplateDecl>(OldD)->getTemplatedDecl()); in declarationReplaces()
3022 assert(getPrimaryTemplate()->getTemplatedDecl()->getBody() && in getTemplateInstantiationPattern()
[all …]
DDeclCXX.cpp438 D = FunTmpl->getTemplatedDecl(); in addedMember()
1002 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1017 return cast<CXXMethodDecl>(InvokerTemplate->getTemplatedDecl()); in getLambdaStaticInvoker()
1275 return CTD->getTemplatedDecl(); in getTemplateInstantiationPattern()
1602 return StaticInvoker == this->getPrimaryTemplate()->getTemplatedDecl(); in isLambdaStaticInvoker()
DComment.cpp191 const FunctionDecl *FD = FTD->getTemplatedDecl(); in fill()
DASTImporter.cpp1267 return Context.IsStructurallyEquivalent(D1->getTemplatedDecl(), in IsStructurallyEquivalent()
1268 D2->getTemplatedDecl()); in IsStructurallyEquivalent()
4011 = cast_or_null<CXXRecordDecl>(D->getTemplatedDecl()->getDefinition()); in VisitClassTemplateDecl()
4012 if (Definition && Definition != D->getTemplatedDecl()) { in VisitClassTemplateDecl()
4044 Importer.Imported(D->getTemplatedDecl(), in VisitClassTemplateDecl()
4045 FoundTemplate->getTemplatedDecl()); in VisitClassTemplateDecl()
4063 CXXRecordDecl *DTemplated = D->getTemplatedDecl(); in VisitClassTemplateDecl()
4200 cast_or_null<VarDecl>(D->getTemplatedDecl()->getDefinition()); in VisitVarTemplateDecl()
4201 if (Definition && Definition != D->getTemplatedDecl()) { in VisitVarTemplateDecl()
4230 Importer.Imported(D->getTemplatedDecl(), in VisitVarTemplateDecl()
[all …]
DMicrosoftMangle.cpp72 return FTD->getTemplatedDecl(); in getStructor()
76 return FTD->getTemplatedDecl(); in getStructor()
1226 TA.getAsTemplate().getAsTemplateDecl()->getTemplatedDecl(); in mangleTemplateArg()
DItaniumMangle.cpp104 return ftd->getTemplatedDecl(); in getStructor()
524 FD = PrimaryTemplate->getTemplatedDecl(); in mangleFunctionEncoding()
660 mangleUnscopedName(ND->getTemplatedDecl()); in mangleUnscopedTemplateName()
1412 mangleUnqualifiedName(ND->getTemplatedDecl()); in mangleTemplatePrefix()
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp403 return FunctionTemplate->getTemplatedDecl(); in getFunction()
415 return FunctionTemplate->getTemplatedDecl()->getType() in getFunctionType()
DSemaTemplate.cpp468 D = Temp->getTemplatedDecl(); in AdjustDeclIfTemplate()
985 RecordDecl *PrevRecordDecl = PrevClassTemplate->getTemplatedDecl(); in CheckClassTemplate()
1068 PrevClassTemplate->getTemplatedDecl() : nullptr, in CheckClassTemplate()
1119 mergeDeclAttributes(NewClass, PrevClassTemplate->getTemplatedDecl()); in CheckClassTemplate()
2052 TypeAliasDecl *Pattern = AliasTemplate->getTemplatedDecl(); in CheckTemplateIdType()
2146 ClassTemplate->getTemplatedDecl()->getTagKind(), in CheckTemplateIdType()
2148 ClassTemplate->getTemplatedDecl()->getLocStart(), in CheckTemplateIdType()
2472 VarDecl *Templated = VarTemplate->getTemplatedDecl(); in ActOnVarTemplateSpecialization()
2654 VarTemplate->getTemplatedDecl(), in ActOnVarTemplateSpecialization()
2695 VarDecl *InstantiationPattern = Template->getTemplatedDecl(); in CheckVarTemplateId()
[all …]
DSemaTemplateInstantiateDecl.cpp423 TypeAliasDecl *Pattern = D->getTemplatedDecl(); in VisitTypeAliasTemplateDecl()
895 CXXRecordDecl *Pattern = D->getTemplatedDecl(); in VisitClassTemplateDecl()
916 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
946 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
951 << D->getTemplatedDecl()->getTagKind() << Pattern->getDeclName() << DC in VisitClassTemplateDecl()
1091 assert(D->getTemplatedDecl()->isStaticDataMember() && in VisitVarTemplateDecl()
1102 VarDecl *Pattern = D->getTemplatedDecl(); in VisitVarTemplateDecl()
1184 if (CXXMethodDecl *DMethod = dyn_cast<CXXMethodDecl>(D->getTemplatedDecl())) in VisitFunctionTemplateDecl()
1189 D->getTemplatedDecl(), in VisitFunctionTemplateDecl()
1208 !(isFriend && !D->getTemplatedDecl()->isThisDeclarationADefinition())) in VisitFunctionTemplateDecl()
[all …]
DSemaTemplateDeduction.cpp2475 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in SubstituteExplicitTemplateArguments()
2534 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
2770 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
2913 SubstDecl(FunctionTemplate->getTemplatedDecl(), Owner, in FinishTemplateArgumentDeduction()
3260 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3510 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3709 = cast<CXXConversionDecl>(ConversionTemplate->getTemplatedDecl()); in DeduceTemplateArguments()
4114 FunctionDecl *FD1 = FT1->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4115 FunctionDecl *FD2 = FT2->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4256 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.cpp2930 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsInitializerListConstructorConversion()
3066 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsUserDefinedConversion()
3122 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in IsUserDefinedConversion()
4065 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in FindConversionForRefInit()
5322 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in collectViableConversionCandidates()
5422 Conversion = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in PerformContextualImplicitConversion()
5923 if (isa<CXXMethodDecl>(FunTmpl->getTemplatedDecl()) && in AddFunctionCandidates()
5924 !cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl())->isStatic()) in AddFunctionCandidates()
5956 assert(isa<CXXMethodDecl>(TD->getTemplatedDecl()) && in AddMethodCandidate()
6134 Candidate.Function = MethodTmpl->getTemplatedDecl(); in AddMethodTemplateCandidate()
[all …]
DSema.cpp557 Complete = !F->getTemplatedDecl()->isLateTemplateParsed() && in MethodsAndNestedClassesComplete()
558 F->getTemplatedDecl()->isDefined(); in MethodsAndNestedClassesComplete()
DSemaDeclCXX.cpp1329 BaseTemplateSpec->getSpecializedTemplate()->getTemplatedDecl())) { in propagateDLLAttrToBaseClassTemplate()
2252 FunTmpl->getTemplatedDecl()->setAccess(AS); in ActOnCXXMemberDeclarator()
2254 VarTmpl->getTemplatedDecl()->setAccess(AS); in ActOnCXXMemberDeclarator()
4693 FunctionDecl *FD = cast<FunctionTemplateDecl>(D)->getTemplatedDecl(); in CheckAbstractClassUsage()
4711 cast<ClassTemplateDecl>(D)->getTemplatedDecl()); in CheckAbstractClassUsage()
4724 getDLLAttr(Spec->getSpecializedTemplate()->getTemplatedDecl())) { in checkDLLAttribute()
5973 dyn_cast<CXXConstructorDecl>(TI->getTemplatedDecl())) in findUserDeclaredCtor()
6479 D = TD->getTemplatedDecl(); in ActOnReenterTemplateScope()
7366 CXXRecordDecl *TemplateClass = Template->getTemplatedDecl(); in isStdInitializerList()
8584 TypeAliasDecl *OldTD = OldDecl->getTemplatedDecl(); in ActOnAliasDeclaration()
[all …]
/external/clang/lib/Index/
DUSRGeneration.cpp313 VisitFunctionDecl(D->getTemplatedDecl()); in VisitFunctionTemplateDecl()
317 VisitTagDecl(D->getTemplatedDecl()); in VisitClassTemplateDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1576 if (!Template->getTemplatedDecl()) { in VisitCXXRecordDeclImpl()
1790 if (D->getTemplatedDecl()->TemplateOrInstantiation) { in VisitClassTemplateDecl()
1795 D->getTemplatedDecl(), D->getInjectedClassNameSpecialization()); in VisitClassTemplateDecl()
2170 auto *DPattern = D->getTemplatedDecl(); in mergeTemplatePattern()
2171 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2531 return isSameEntity(TemplateX->getTemplatedDecl(), in isSameEntity()
2532 TemplateY->getTemplatedDecl()) && in isSameEntity()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp116 return FunTmpl->getTemplatedDecl()->getBody(); in getBody()

12