Searched refs:DefArg (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/ |
| H A D | p1.cpp | 6 struct DefArg { struct 7 static DefArg &&make(); 8 …DefArg(int n = 5) = default; // expected-error {{an explicitly-defaulted constructor cannot have d… 9 …DefArg(const DefArg &DA = make()) = default; // expected-error {{an explicitly-defaulted construct… 10 …DefArg(const DefArg &DA, int k = 3) = default; // expected-error {{an explicitly-defaulted copy co… 11 …DefArg(DefArg &&DA = make()) = default; // expected-error {{an explicitly-defaulted constructor ca… 12 …DefArg(DefArg &&DA, int k = 3) = default; // expected-error {{an explicitly-defaulted move constru… 13 …DefArg &operator=(const DefArg&, int k = 4) = default; // expected-error {{parameter of overloaded… 14 …DefArg &operator=(DefArg&&, int k = 4) = default; // expected-error {{parameter of overloaded 'ope… 15 ~DefArg(int k = 5) = default; // expected-error {{destructor cannot have any parameters}}
|
| /llvm-project-15.0.7/clang/test/CXX/temp/temp.param/ |
| H A D | p15-cxx0x.cpp | 119 template<typename ...Default> struct DefArg { struct 128 DefArg<int, char>::Inner<vector, list> defarg(vi, lc);
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclTemplate.h | 1297 void setDefaultArgument(TypeSourceInfo *DefArg) { 1298 DefaultArgument.set(DefArg); 1506 void setDefaultArgument(Expr *DefArg) { DefaultArgument.set(DefArg); } 1766 const TemplateArgumentLoc &DefArg);
|
| H A D | Decl.h | 1688 TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg) in ParmVarDecl() argument 1694 setDefaultArg(DefArg); in ParmVarDecl() 1702 StorageClass S, Expr *DefArg);
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclTemplate.cpp | 855 const ASTContext &C, const TemplateArgumentLoc &DefArg) { in setDefaultArgument() argument 856 if (DefArg.getArgument().isNull()) in setDefaultArgument() 859 DefaultArgument.set(new (C) TemplateArgumentLoc(DefArg)); in setDefaultArgument()
|
| H A D | Decl.cpp | 2817 StorageClass S, Expr *DefArg) { in Create() argument 2819 S, DefArg); in Create()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Hover.cpp | 359 if (const Expr *DefArg = getDefaultArg(PVD)) { in toHoverInfoParam() local 362 DefArg->printPretty(OS, nullptr, PP); in toHoverInfoParam()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateDeduction.cpp | 2722 TemplateArgumentLoc DefArg; in ConvertDeducedTemplateArguments() local 2736 DefArg = S.SubstDefaultTemplateArgumentIfAvailable( in ConvertDeducedTemplateArguments() 2742 if (DefArg.getArgument().isNull()) { in ConvertDeducedTemplateArguments() 2753 if (S.CheckTemplateArgument(Param, DefArg, TD, TD->getLocation(), in ConvertDeducedTemplateArguments()
|
| H A D | SemaOverload.cpp | 14188 ExprResult DefArg = in PrepareArgumentsForCallToObjectOfClassType() local 14190 if (DefArg.isInvalid()) { in PrepareArgumentsForCallToObjectOfClassType() 14194 Arg = DefArg.getAs<Expr>(); in PrepareArgumentsForCallToObjectOfClassType()
|
| H A D | SemaTemplate.cpp | 8361 if (Expr *DefArg = NTTP->getDefaultArgument()) { in ActOnClassTemplateSpecialization() local 8364 << DefArg->getSourceRange(); in ActOnClassTemplateSpecialization()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndex.cpp | 771 if (TypeSourceInfo *DefArg = D->getDefaultArgumentInfo()) in VisitTemplateTypeParmDecl() local 772 if (Visit(DefArg->getTypeLoc())) in VisitTemplateTypeParmDecl() 940 if (Expr *DefArg = D->getDefaultArgument()) in VisitNonTypeTemplateParmDecl() local 941 return Visit(MakeCXCursor(DefArg, StmtParent, TU, RegionOfInterest)); in VisitNonTypeTemplateParmDecl()
|