/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/ |
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}}
|
/external/llvm-project/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/ |
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}}
|
/external/llvm-project/clang/test/CXX/temp/temp.param/ |
D | p15-cxx0x.cpp | 119 template<typename ...Default> struct DefArg { struct 128 DefArg<int, char>::Inner<vector, list> defarg(vi, lc);
|
/external/clang/test/CXX/temp/temp.param/ |
D | p15-cxx0x.cpp | 119 template<typename ...Default> struct DefArg { struct 128 DefArg<int, char>::Inner<vector, list> defarg(vi, lc);
|
/external/clang/include/clang/AST/ |
D | DeclTemplate.h | 1100 void setDefaultArgument(TypeSourceInfo *DefArg) { 1101 DefaultArgument.set(DefArg); 1235 void setDefaultArgument(Expr *DefArg) { DefaultArgument.set(DefArg); } 1462 const TemplateArgumentLoc &DefArg);
|
D | Decl.h | 1385 TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg) in ParmVarDecl() argument 1391 setDefaultArg(DefArg); in ParmVarDecl() 1399 StorageClass S, Expr *DefArg);
|
/external/clang/lib/AST/ |
D | DeclTemplate.cpp | 653 const ASTContext &C, const TemplateArgumentLoc &DefArg) { in setDefaultArgument() argument 654 if (DefArg.getArgument().isNull()) in setDefaultArgument() 657 DefaultArgument.set(new (C) TemplateArgumentLoc(DefArg)); in setDefaultArgument()
|
D | Decl.cpp | 2332 StorageClass S, Expr *DefArg) { in Create() argument 2334 S, DefArg); in Create()
|
/external/llvm-project/clang/include/clang/AST/ |
D | DeclTemplate.h | 1266 void setDefaultArgument(TypeSourceInfo *DefArg) { 1267 DefaultArgument.set(DefArg); 1475 void setDefaultArgument(Expr *DefArg) { DefaultArgument.set(DefArg); } 1735 const TemplateArgumentLoc &DefArg);
|
D | Decl.h | 1625 TypeSourceInfo *TInfo, StorageClass S, Expr *DefArg) in ParmVarDecl() argument 1631 setDefaultArg(DefArg); in ParmVarDecl() 1639 StorageClass S, Expr *DefArg);
|
/external/llvm-project/clang/lib/AST/ |
D | DeclTemplate.cpp | 819 const ASTContext &C, const TemplateArgumentLoc &DefArg) { in setDefaultArgument() argument 820 if (DefArg.getArgument().isNull()) in setDefaultArgument() 823 DefaultArgument.set(new (C) TemplateArgumentLoc(DefArg)); in setDefaultArgument()
|
D | Decl.cpp | 2707 StorageClass S, Expr *DefArg) { in Create() argument 2709 S, DefArg); in Create()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Hover.cpp | 298 if (const Expr *DefArg = getDefaultArg(PVD)) { in toHoverInfoParam() local 301 DefArg->printPretty(OS, nullptr, Policy); in toHoverInfoParam()
|
/external/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 2860 TemplateArgumentLoc DefArg in FinishTemplateArgumentDeduction() local 2868 if (DefArg.getArgument().isNull()) { in FinishTemplateArgumentDeduction() 2878 if (CheckTemplateArgument(Param, DefArg, in FinishTemplateArgumentDeduction()
|
D | SemaTemplate.cpp | 6249 if (Expr *DefArg = NTTP->getDefaultArgument()) { in ActOnClassTemplateSpecialization() local 6252 << DefArg->getSourceRange(); in ActOnClassTemplateSpecialization()
|
D | SemaOverload.cpp | 12671 ExprResult DefArg in BuildCallToObjectOfClassType() local 12673 if (DefArg.isInvalid()) { in BuildCallToObjectOfClassType() 12678 Arg = DefArg.getAs<Expr>(); in BuildCallToObjectOfClassType()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaTemplateDeduction.cpp | 2876 TemplateArgumentLoc DefArg = S.SubstDefaultTemplateArgumentIfAvailable( in ConvertDeducedTemplateArguments() local 2881 if (DefArg.getArgument().isNull()) { in ConvertDeducedTemplateArguments() 2892 if (S.CheckTemplateArgument(Param, DefArg, TD, TD->getLocation(), in ConvertDeducedTemplateArguments()
|
D | SemaOverload.cpp | 14671 ExprResult DefArg in BuildCallToObjectOfClassType() local 14673 if (DefArg.isInvalid()) { in BuildCallToObjectOfClassType() 14678 Arg = DefArg.getAs<Expr>(); in BuildCallToObjectOfClassType()
|
D | SemaTemplate.cpp | 8307 if (Expr *DefArg = NTTP->getDefaultArgument()) { in ActOnClassTemplateSpecialization() local 8310 << DefArg->getSourceRange(); in ActOnClassTemplateSpecialization()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 751 if (TypeSourceInfo *DefArg = D->getDefaultArgumentInfo()) in VisitTemplateTypeParmDecl() local 752 if (Visit(DefArg->getTypeLoc())) in VisitTemplateTypeParmDecl() 896 if (Expr *DefArg = D->getDefaultArgument()) in VisitNonTypeTemplateParmDecl() local 897 return Visit(MakeCXCursor(DefArg, StmtParent, TU, RegionOfInterest)); in VisitNonTypeTemplateParmDecl()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndex.cpp | 770 if (TypeSourceInfo *DefArg = D->getDefaultArgumentInfo()) in VisitTemplateTypeParmDecl() local 771 if (Visit(DefArg->getTypeLoc())) in VisitTemplateTypeParmDecl() 934 if (Expr *DefArg = D->getDefaultArgument()) in VisitNonTypeTemplateParmDecl() local 935 return Visit(MakeCXCursor(DefArg, StmtParent, TU, RegionOfInterest)); in VisitNonTypeTemplateParmDecl()
|