Home
last modified time | relevance | path

Searched refs:getTemplatedDecl (Results 1 – 25 of 43) 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()
/external/clang/include/clang/AST/
DASTLambda.h58 dyn_cast_or_null<CXXConversionDecl>(F->getTemplatedDecl())) in isLambdaConversionOperator()
DDeclTemplate.h362 NamedDecl *getTemplatedDecl() const { return TemplatedDecl; } in getTemplatedDecl() function
894 FunctionDecl *getTemplatedDecl() const {
901 return getTemplatedDecl()->isThisDeclarationADefinition();
1987 CXXRecordDecl *getTemplatedDecl() const {
1994 return getTemplatedDecl()->isThisDeclarationADefinition();
2250 TypeAliasDecl *getTemplatedDecl() const {
2813 VarDecl *getTemplatedDecl() const {
2820 return getTemplatedDecl()->isThisDeclarationADefinition();
DRecursiveASTVisitor.h1529 TRY_TO(TraverseDecl(D->getTemplatedDecl())); \
1554 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
1588 TRY_TO(TraverseDecl(D->getTemplatedDecl()));
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp403 return FunctionTemplate->getTemplatedDecl(); in getFunction()
415 return FunctionTemplate->getTemplatedDecl()->getType() in getFunctionType()
DSemaTemplate.cpp469 D = Temp->getTemplatedDecl(); in AdjustDeclIfTemplate()
1011 RecordDecl *PrevRecordDecl = PrevClassTemplate->getTemplatedDecl(); in CheckClassTemplate()
1090 PrevClassTemplate->getTemplatedDecl() : nullptr, in CheckClassTemplate()
1141 mergeDeclAttributes(NewClass, PrevClassTemplate->getTemplatedDecl()); in CheckClassTemplate()
2116 TypeAliasDecl *Pattern = AliasTemplate->getTemplatedDecl(); in CheckTemplateIdType()
2210 ClassTemplate->getTemplatedDecl()->getTagKind(), in CheckTemplateIdType()
2212 ClassTemplate->getTemplatedDecl()->getLocStart(), in CheckTemplateIdType()
2702 VarTemplate->getTemplatedDecl(), in ActOnVarTemplateSpecialization()
2743 VarDecl *InstantiationPattern = Template->getTemplatedDecl(); in CheckVarTemplateId()
6238 if (!isAcceptableTagRedeclaration(ClassTemplate->getTemplatedDecl(), in ActOnClassTemplateSpecialization()
[all …]
DSemaTemplateInstantiateDecl.cpp455 TypeAliasDecl *Pattern = D->getTemplatedDecl(); in VisitTypeAliasTemplateDecl()
941 CXXRecordDecl *Pattern = D->getTemplatedDecl(); in VisitClassTemplateDecl()
962 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
992 PrevDecl = PrevClassTemplate->getTemplatedDecl(); in VisitClassTemplateDecl()
997 << D->getTemplatedDecl()->getTagKind() << Pattern->getDeclName() << DC in VisitClassTemplateDecl()
1137 assert(D->getTemplatedDecl()->isStaticDataMember() && in VisitVarTemplateDecl()
1148 VarDecl *Pattern = D->getTemplatedDecl(); in VisitVarTemplateDecl()
1231 if (CXXMethodDecl *DMethod = dyn_cast<CXXMethodDecl>(D->getTemplatedDecl())) in VisitFunctionTemplateDecl()
1236 D->getTemplatedDecl(), in VisitFunctionTemplateDecl()
1255 !(isFriend && !D->getTemplatedDecl()->isThisDeclarationADefinition())) in VisitFunctionTemplateDecl()
[all …]
DSemaTemplateDeduction.cpp2483 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in SubstituteExplicitTemplateArguments()
2542 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in SubstituteExplicitTemplateArguments()
2778 ContextRAII SavedContext(*this, FunctionTemplate->getTemplatedDecl()); in FinishTemplateArgumentDeduction()
2922 SubstDecl(FunctionTemplate->getTemplatedDecl(), Owner, in FinishTemplateArgumentDeduction()
3338 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3576 FunctionDecl *Function = FunctionTemplate->getTemplatedDecl(); in DeduceTemplateArguments()
3777 = cast<CXXConversionDecl>(ConversionTemplate->getTemplatedDecl()); in DeduceTemplateArguments()
4193 FunctionDecl *FD1 = FT1->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4194 FunctionDecl *FD2 = FT2->getTemplatedDecl(); in isAtLeastAsSpecializedAs()
4335 FunctionDecl *Function = FunTmpl->getTemplatedDecl(); in isVariadicFunctionTemplate()
[all …]
DSemaAccess.cpp402 Context->getTemplatedDecl(), in MightInstantiateTo()
403 Friend->getTemplatedDecl()); in MightInstantiateTo()
1081 cast<FunctionTemplateDecl>(D)->getTemplatedDecl()))) { in TryDiagnoseProtectedAccess()
1485 DC = cast<DeclContext>(TD->getTemplatedDecl()); in HandleDelayedAccessCheck()
DSemaOverload.cpp2992 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsInitializerListConstructorConversion()
3124 = cast<CXXConstructorDecl>(ConstructorTmpl->getTemplatedDecl()); in IsUserDefinedConversion()
3180 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in IsUserDefinedConversion()
4123 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in FindConversionForRefInit()
5383 Conv = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in collectViableConversionCandidates()
5484 Conversion = cast<CXXConversionDecl>(ConvTemplate->getTemplatedDecl()); in PerformContextualImplicitConversion()
6015 if (isa<CXXMethodDecl>(FunTmpl->getTemplatedDecl()) && in AddFunctionCandidates()
6016 !cast<CXXMethodDecl>(FunTmpl->getTemplatedDecl())->isStatic()) in AddFunctionCandidates()
6048 assert(isa<CXXMethodDecl>(TD->getTemplatedDecl()) && in AddMethodCandidate()
6226 Candidate.Function = MethodTmpl->getTemplatedDecl(); in AddMethodTemplateCandidate()
[all …]
DSema.cpp590 Complete = !F->getTemplatedDecl()->isLateTemplateParsed() && in MethodsAndNestedClassesComplete()
591 F->getTemplatedDecl()->isDefined(); in MethodsAndNestedClassesComplete()
DSemaDeclCXX.cpp2229 FunTmpl->getTemplatedDecl()->setAccess(AS); in ActOnCXXMemberDeclarator()
2231 VarTmpl->getTemplatedDecl()->setAccess(AS); in ActOnCXXMemberDeclarator()
4648 FunctionDecl *FD = cast<FunctionTemplateDecl>(D)->getTemplatedDecl(); in CheckAbstractClassUsage()
4666 cast<ClassTemplateDecl>(D)->getTemplatedDecl()); in CheckAbstractClassUsage()
4733 getDLLAttr(Spec->getSpecializedTemplate()->getTemplatedDecl())) { in checkClassLevelDLLAttribute()
4838 BaseTemplateSpec->getSpecializedTemplate()->getTemplatedDecl())) { in propagateDLLAttrToBaseClassTemplate()
6009 dyn_cast<CXXConstructorDecl>(TI->getTemplatedDecl())) in findUserDeclaredCtor()
6513 D = TD->getTemplatedDecl(); in ActOnReenterTemplateScope()
7390 CXXRecordDecl *TemplateClass = Template->getTemplatedDecl(); in isStdInitializerList()
8599 TypeAliasDecl *OldTD = OldDecl->getTemplatedDecl(); in ActOnAliasDeclaration()
[all …]
/external/clang/lib/AST/
DDecl.cpp928 explicitSpecSuppressor = spec->getTemplate()->getTemplatedDecl(); in getLVForClassMember()
942 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
977 explicitSpecSuppressor = temp->getTemplatedDecl(); in getLVForClassMember()
1061 return getVisibilityOf(spec->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1079 return getVisibilityOf(VTSD->getSpecializedTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1090 return getVisibilityOf(templateInfo->getTemplate()->getTemplatedDecl(), in getExplicitVisibilityAux()
1104 return getVisibilityOf(TD->getTemplatedDecl(), kind); in getExplicitVisibilityAux()
3048 assert(getPrimaryTemplate()->getTemplatedDecl()->getBody() && in getTemplateInstantiationPattern()
3052 return getPrimaryTemplate()->getTemplatedDecl(); in getTemplateInstantiationPattern()
3064 return Primary->getTemplatedDecl(); in getTemplateInstantiationPattern()
[all …]
DDeclCXX.cpp432 D = FunTmpl->getTemplatedDecl(); in addedMember()
996 return cast<CXXMethodDecl>(CallOpTmpl->getTemplatedDecl()); in getLambdaCallOperator()
1011 return cast<CXXMethodDecl>(InvokerTemplate->getTemplatedDecl()); in getLambdaStaticInvoker()
1269 return CTD->getTemplatedDecl()->getDefinition(); in getTemplateInstantiationPattern()
1618 return StaticInvoker == this->getPrimaryTemplate()->getTemplatedDecl(); in isLambdaStaticInvoker()
DComment.cpp191 const FunctionDecl *FD = FTD->getTemplatedDecl(); in fill()
DASTImporter.cpp1310 return Context.IsStructurallyEquivalent(D1->getTemplatedDecl(), in IsStructurallyEquivalent()
1311 D2->getTemplatedDecl()); in IsStructurallyEquivalent()
4183 = cast_or_null<CXXRecordDecl>(D->getTemplatedDecl()->getDefinition()); in VisitClassTemplateDecl()
4184 if (Definition && Definition != D->getTemplatedDecl()) { in VisitClassTemplateDecl()
4219 Importer.Imported(D->getTemplatedDecl(), in VisitClassTemplateDecl()
4220 FoundTemplate->getTemplatedDecl()); in VisitClassTemplateDecl()
4238 CXXRecordDecl *DTemplated = D->getTemplatedDecl(); in VisitClassTemplateDecl()
4375 cast_or_null<VarDecl>(D->getTemplatedDecl()->getDefinition()); in VisitVarTemplateDecl()
4376 if (Definition && Definition != D->getTemplatedDecl()) { in VisitVarTemplateDecl()
4408 Importer.Imported(D->getTemplatedDecl(), in VisitVarTemplateDecl()
[all …]
DDeclPrinter.cpp945 Visit(D->getTemplatedDecl()); in VisitTemplateDecl()
959 prettyPrintPragmas(D->getTemplatedDecl()); in VisitFunctionTemplateDecl()
DMicrosoftMangle.cpp73 return FTD->getTemplatedDecl(); in getStructor()
77 return FTD->getTemplatedDecl(); in getStructor()
1279 TA.getAsTemplate().getAsTemplateDecl()->getTemplatedDecl(); in mangleTemplateArg()
DItaniumMangle.cpp104 return ftd->getTemplatedDecl(); in getStructor()
522 FD = PrimaryTemplate->getTemplatedDecl(); in mangleFunctionEncoding()
658 mangleUnscopedName(ND->getTemplatedDecl()); in mangleUnscopedTemplateName()
1410 mangleUnqualifiedName(ND->getTemplatedDecl()); in mangleTemplatePrefix()
/external/clang/lib/Index/
DUSRGeneration.cpp311 VisitFunctionDecl(D->getTemplatedDecl()); in VisitFunctionTemplateDecl()
315 VisitTagDecl(D->getTemplatedDecl()); in VisitClassTemplateDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1643 if (!Template->getTemplatedDecl()) { in VisitCXXRecordDeclImpl()
1854 if (D->getTemplatedDecl()->TemplateOrInstantiation) { in VisitClassTemplateDecl()
1859 D->getTemplatedDecl(), D->getInjectedClassNameSpecialization()); in VisitClassTemplateDecl()
2253 auto *DPattern = D->getTemplatedDecl(); in mergeTemplatePattern()
2254 auto *ExistingPattern = Existing->getTemplatedDecl(); in mergeTemplatePattern()
2609 return isSameEntity(TemplateX->getTemplatedDecl(), in isSameEntity()
2610 TemplateY->getTemplatedDecl()) && in isSameEntity()
/external/clang/lib/Analysis/
DAnalysisDeclContext.cpp116 return FunTmpl->getTemplatedDecl()->getBody(); in getBody()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp779 TemplateType->getTemplateName().getAsTemplateDecl()->getTemplatedDecl(); in getAsCXXRecordDecl()

12