Home
last modified time | relevance | path

Searched refs:NonTypeTemplateParmDecl (Results 1 – 25 of 94) sorted by relevance

1234

/external/clang/lib/AST/
DDeclTemplate.cpp43 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in TemplateParameterList()
70 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) in getMinRequiredArguments()
82 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getMinRequiredArguments()
102 else if (const NonTypeTemplateParmDecl *NTTP in getDepth()
103 = dyn_cast<NonTypeTemplateParmDecl>(FirstParm)) in getDepth()
213 } else if (auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in GenerateInjectedTemplateArgs()
520 NonTypeTemplateParmDecl::NonTypeTemplateParmDecl( in NonTypeTemplateParmDecl() function in NonTypeTemplateParmDecl
537 NonTypeTemplateParmDecl *
538 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
543 return new (C, DC) NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, in Create()
[all …]
DASTDiagnostic.cpp1135 NonTypeTemplateParmDecl *Default, in InitializeNonTypeDiffVariables()
1204 NonTypeTemplateParmDecl *FromDefaultNonTypeDecl, in DiffNonTypes()
1205 NonTypeTemplateParmDecl *ToDefaultNonTypeDecl) { in DiffNonTypes()
1301 } else if (isa<NonTypeTemplateParmDecl>(FromParamND)) { in DiffTemplate()
1302 NonTypeTemplateParmDecl *FromDefaultNonTypeDecl = in DiffTemplate()
1303 cast<NonTypeTemplateParmDecl>(FromParamND); in DiffTemplate()
1304 NonTypeTemplateParmDecl *ToDefaultNonTypeDecl = in DiffTemplate()
1305 cast<NonTypeTemplateParmDecl>(ToParamND); in DiffTemplate()
DExprClassification.cpp425 if (const NonTypeTemplateParmDecl *NTTParm = in ClassifyDecl()
426 dyn_cast<NonTypeTemplateParmDecl>(D)) in ClassifyDecl()
DDeclBase.cpp172 if (const NonTypeTemplateParmDecl *NTTP in isTemplateParameterPack()
173 = dyn_cast<NonTypeTemplateParmDecl>(this)) in isTemplateParameterPack()
791 isa<NonTypeTemplateParmDecl>(this) || in AccessDeclContextSanity()
/external/llvm-project/clang/lib/AST/
DDeclTemplate.cpp62 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in TemplateParameterList()
105 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getMinRequiredArguments()
129 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in getMinRequiredArguments()
148 else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(FirstParm)) in getDepth()
171 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in getAssociatedConstraints()
482 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in ProfileTemplateParameterList()
672 NonTypeTemplateParmDecl::NonTypeTemplateParmDecl( in NonTypeTemplateParmDecl() function in NonTypeTemplateParmDecl
689 NonTypeTemplateParmDecl *
690 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create()
701 NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, T, ParameterPack, in Create()
[all …]
DASTDiagnostic.cpp1175 NonTypeTemplateParmDecl *Default, in InitializeNonTypeDiffVariables()
1244 NonTypeTemplateParmDecl *FromDefaultNonTypeDecl, in DiffNonTypes()
1245 NonTypeTemplateParmDecl *ToDefaultNonTypeDecl) { in DiffNonTypes()
1341 } else if (isa<NonTypeTemplateParmDecl>(FromParamND)) { in DiffTemplate()
1342 NonTypeTemplateParmDecl *FromDefaultNonTypeDecl = in DiffTemplate()
1343 cast<NonTypeTemplateParmDecl>(FromParamND); in DiffTemplate()
1344 NonTypeTemplateParmDecl *ToDefaultNonTypeDecl = in DiffTemplate()
1345 cast<NonTypeTemplateParmDecl>(ToParamND); in DiffTemplate()
DMicrosoftMangle.cpp387 const NonTypeTemplateParmDecl *PD = nullptr,
389 void mangleExpression(const Expr *E, const NonTypeTemplateParmDecl *PD);
1413 const llvm::APSInt &Value, const NonTypeTemplateParmDecl *PD, in mangleIntegerLiteral()
1434 const Expr *E, const NonTypeTemplateParmDecl *PD) { in mangleExpression()
1521 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg()
1546 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg()
1552 cast<NonTypeTemplateParmDecl>(Parm), T); in mangleTemplateArg()
1556 mangleExpression(TA.getAsExpr(), cast<NonTypeTemplateParmDecl>(Parm)); in mangleTemplateArg()
1569 else if (isa<NonTypeTemplateParmDecl>(Parm)) in mangleTemplateArg()
/external/clang/lib/Sema/
DSemaTemplate.cpp696 NonTypeTemplateParmDecl *Param in ActOnNonTypeTemplateParameter()
697 = NonTypeTemplateParmDecl::Create(Context, Context.getTranslationUnitDecl(), in ActOnNonTypeTemplateParameter()
1269 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in DiagnoseUnexpandedParameterPacks()
1378 } else if (NonTypeTemplateParmDecl *NewNonTypeParm in CheckTemplateParameterList()
1379 = dyn_cast<NonTypeTemplateParmDecl>(*NewParam)) { in CheckTemplateParameterList()
1398 NonTypeTemplateParmDecl *OldNonTypeParm in CheckTemplateParameterList()
1399 = OldParams? cast<NonTypeTemplateParmDecl>(*OldParam) : nullptr; in CheckTemplateParameterList()
1514 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList()
1515 = dyn_cast<NonTypeTemplateParmDecl>(*NewParam)) in CheckTemplateParameterList()
1542 } else if (NonTypeTemplateParmDecl *PD = in DependencyChecker()
[all …]
DSemaTemplateDeduction.cpp116 static NonTypeTemplateParmDecl *getDeducedParameterFromExpr(Expr *E) { in getDeducedParameterFromExpr()
130 return dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl()); in getDeducedParameterFromExpr()
290 Sema &S, NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value, in DeduceNonTypeTemplateArgument()
318 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument()
349 NonTypeTemplateParmDecl *NTTP, in DeduceNonTypeTemplateArgument()
526 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex()
548 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) in makeTemplateParameter()
1339 NonTypeTemplateParmDecl *NTTP in DeduceTemplateArgumentsByTypeMatch()
1624 NonTypeTemplateParmDecl *NTTP in DeduceTemplateArgumentsByTypeMatch()
1646 NonTypeTemplateParmDecl *NTTP in DeduceTemplateArgumentsByTypeMatch()
[all …]
DSemaTemplateInstantiate.cpp301 NonTypeTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
611 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex()
777 NonTypeTemplateParmDecl *D);
837 ExprResult transformNonTypeTemplateParmRef(NonTypeTemplateParmDecl *parm,
1072 NonTypeTemplateParmDecl *NTTP) { in TransformTemplateParmRefExpr()
1127 NonTypeTemplateParmDecl *parm, in transformNonTypeTemplateParmRef()
1280 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in TransformDeclRefExpr()
2792 if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || in findInstantiationOf()
DSemaTemplateVariadic.cpp531 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex()
/external/llvm-project/clang/unittests/Tooling/RecursiveASTVisitorTests/
DLambdaTemplateParams.cpp28 bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D) { in VisitNonTypeTemplateParmDecl()
/external/clang/include/clang/AST/
DDeclTemplate.h37 class NonTypeTemplateParmDecl; variable
44 typedef llvm::PointerUnion3<TemplateTypeParmDecl*, NonTypeTemplateParmDecl*,
1140 class NonTypeTemplateParmDecl final
1143 private llvm::TrailingObjects<NonTypeTemplateParmDecl,
1147 typedef DefaultArgStorage<NonTypeTemplateParmDecl, Expr*> DefArgStorage;
1169 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1178 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1189 static NonTypeTemplateParmDecl *
1194 static NonTypeTemplateParmDecl *
1200 static NonTypeTemplateParmDecl *CreateDeserialized(ASTContext &C,
[all …]
/external/llvm-project/clang/include/clang/AST/
DDeclTemplate.h51 class NonTypeTemplateParmDecl; variable
62 llvm::PointerUnion<TemplateTypeParmDecl *, NonTypeTemplateParmDecl *,
1379 class NonTypeTemplateParmDecl final
1382 private llvm::TrailingObjects<NonTypeTemplateParmDecl,
1390 using DefArgStorage = DefaultArgStorage<NonTypeTemplateParmDecl, Expr *>;
1412 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1419 NonTypeTemplateParmDecl(DeclContext *DC, SourceLocation StartLoc,
1427 static NonTypeTemplateParmDecl *
1432 static NonTypeTemplateParmDecl *
1438 static NonTypeTemplateParmDecl *CreateDeserialized(ASTContext &C,
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaTemplateDeduction.cpp174 static const NonTypeTemplateParmDecl *
197 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(DRE->getDecl())) in getDeducedParameterFromExpr()
204 static const NonTypeTemplateParmDecl *
388 const NonTypeTemplateParmDecl *NTTP, const DeducedTemplateArgument &NewDeduced, in DeduceNonTypeTemplateArgument()
397 Info.Param = const_cast<NonTypeTemplateParmDecl*>(NTTP); in DeduceNonTypeTemplateArgument()
441 const NonTypeTemplateParmDecl *NTTP, const llvm::APSInt &Value, in DeduceNonTypeTemplateArgument()
455 const NonTypeTemplateParmDecl *NTTP, QualType NullPtrType, in DeduceNullPtrTemplateArgument()
474 const NonTypeTemplateParmDecl *NTTP, Expr *Value, TemplateDeductionInfo &Info, in DeduceNonTypeTemplateArgument()
487 const NonTypeTemplateParmDecl *NTTP, ValueDecl *D, QualType T, in DeduceNonTypeTemplateArgument()
655 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) in makeTemplateParameter()
[all …]
DSemaTemplate.cpp1230 bool Sema::AttachTypeConstraint(AutoTypeLoc TL, NonTypeTemplateParmDecl *NTTP, in AttachTypeConstraint()
1530 NonTypeTemplateParmDecl *Param = NonTypeTemplateParmDecl::Create( in ActOnNonTypeTemplateParameter()
2281 cast<NonTypeTemplateParmDecl>(TemplateParam), Args); in transformTemplateParameter()
2596 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(P)) { in DiagnoseUnexpandedParameterPacks()
2713 } else if (NonTypeTemplateParmDecl *NewNonTypeParm in CheckTemplateParameterList()
2714 = dyn_cast<NonTypeTemplateParmDecl>(*NewParam)) { in CheckTemplateParameterList()
2733 NonTypeTemplateParmDecl *OldNonTypeParm in CheckTemplateParameterList()
2734 = OldParams? cast<NonTypeTemplateParmDecl>(*OldParam) : nullptr; in CheckTemplateParameterList()
2851 else if (NonTypeTemplateParmDecl *NTTP in CheckTemplateParameterList()
2852 = dyn_cast<NonTypeTemplateParmDecl>(*NewParam)) in CheckTemplateParameterList()
[all …]
DSemaTemplateInstantiate.cpp352 NonTypeTemplateParmDecl *Param, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate()
1084 NonTypeTemplateParmDecl *D);
1188 ExprResult transformNonTypeTemplateParmRef(NonTypeTemplateParmDecl *parm,
1432 NonTypeTemplateParmDecl *NTTP) { in TransformTemplateParmRefExpr()
1505 NonTypeTemplateParmDecl *parm, in transformNonTypeTemplateParmRef()
1710 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(D)) { in TransformDeclRefExpr()
3587 if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D) || in findInstantiationOf()
/external/clang/lib/Index/
DUSRGeneration.cpp91 void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *D);
301 const NonTypeTemplateParmDecl *D) { in VisitNonTypeTemplateParmDecl()
772 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList()
DIndexingContext.cpp53 if (isa<NonTypeTemplateParmDecl>(D) || isa<TemplateTypeParmDecl>(D)) in handleReference()
/external/llvm-project/clang/lib/Index/
DUSRGeneration.cpp102 void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *D);
352 const NonTypeTemplateParmDecl *D) { in VisitNonTypeTemplateParmDecl()
917 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(*P)) { in VisitTemplateParameterList()
/external/llvm-project/clang/tools/libclang/
DCursorVisitor.h218 bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D);
/external/clang/tools/libclang/
DCursorVisitor.h217 bool VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D);
/external/llvm-project/clang/include/clang/Sema/
DSemaInternal.h69 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex()
/external/llvm-project/clang-tools-extra/clangd/
DHover.cpp139 std::string printType(const NonTypeTemplateParmDecl *NTTP, in printType()
158 else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) in printType()
185 } else if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(Param)) { in fetchTemplateParameters()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp316 void VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D);
2175 void ASTDeclReader::VisitNonTypeTemplateParmDecl(NonTypeTemplateParmDecl *D) { in VisitNonTypeTemplateParmDecl()
2558 if (const NonTypeTemplateParmDecl *TX = dyn_cast<NonTypeTemplateParmDecl>(X)) { in isSameTemplateParameter()
2559 const NonTypeTemplateParmDecl *TY = cast<NonTypeTemplateParmDecl>(Y); in isSameTemplateParameter()
3122 } else if (auto *FNTTP = dyn_cast<NonTypeTemplateParmDecl>(FromParam)) { in inheritDefaultTemplateArguments()
3331 D = NonTypeTemplateParmDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
3334 D = NonTypeTemplateParmDecl::CreateDeserialized(Context, ID, Record[Idx++]); in ReadDeclRecord()

1234