| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | dtor.cpp | 160 struct DefaultArg { struct 161 DefaultArg(int x = 0) {} in DefaultArg() function 162 ~DefaultArg(); 165 struct InheritsDefaultArg : DefaultArg {
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseTemplate.cpp | 845 ParsedType DefaultArg; in ParseTypeParameter() local 847 DefaultArg = in ParseTypeParameter() 855 DefaultArg, in ParseTypeParameter() 963 ParsedTemplateArgument DefaultArg; in ParseTemplateTemplateParameter() local 965 DefaultArg = ParseTemplateTemplateArgument(); in ParseTemplateTemplateParameter() 966 if (DefaultArg.isInvalid()) { in ParseTemplateTemplateParameter() 977 Position, EqualLoc, DefaultArg); in ParseTemplateTemplateParameter() 1013 ExprResult DefaultArg; in ParseNonTypeTemplateParameter() local 1027 DefaultArg = in ParseNonTypeTemplateParameter() 1029 if (DefaultArg.isInvalid()) in ParseNonTypeTemplateParameter() [all …]
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | typo-correction-delayed.cpp | 108 const int DefaultArg = 9; // expected-note {{'DefaultArg' declared here}} variable
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 1041 ParsedType DefaultArg, in ActOnTypeParameter() argument 1069 if (DefaultArg && IsParameterPack) { in ActOnTypeParameter() 1071 DefaultArg = nullptr; in ActOnTypeParameter() 1075 if (DefaultArg) { in ActOnTypeParameter() 1077 GetTypeFromParser(DefaultArg, &DefaultTInfo); in ActOnTypeParameter() 1670 TemplateArgumentLoc DefaultArg = translateTemplateArgument(*this, Default); in ActOnTemplateTemplateParameter() local 1671 if (DefaultArg.getArgument().getAsTemplate().isNull()) { in ActOnTemplateTemplateParameter() 1672 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_valid_template) in ActOnTemplateTemplateParameter() 1673 << DefaultArg.getSourceRange(); in ActOnTemplateTemplateParameter() 1678 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter() [all …]
|
| H A D | SemaDeclCXX.cpp | 64 const Expr *DefaultArg; member in __anonc19065b00111::CheckDefaultArgumentVisitor 67 CheckDefaultArgumentVisitor(Sema &S, const Expr *DefaultArg) in CheckDefaultArgumentVisitor() argument 68 : S(S), DefaultArg(DefaultArg) {} in CheckDefaultArgumentVisitor() 102 << Param->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr() 309 Expr *DefaultArg) { in ActOnParamDefaultArgument() argument 310 if (!param || !DefaultArg) in ActOnParamDefaultArgument() 325 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 339 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 349 DefaultArg = Result.getAs<Expr>(); in ActOnParamDefaultArgument() 353 if (DefaultArgChecker.Visit(DefaultArg)) in ActOnParamDefaultArgument() [all …]
|
| H A D | SemaLookup.cpp | 1629 auto &DefaultArg = D->getDefaultArgStorage(); in hasAcceptableDefaultArgument() local 1630 if (!DefaultArg.isInherited() && S.isAcceptable(D, Kind)) in hasAcceptableDefaultArgument() 1633 if (!DefaultArg.isInherited() && Modules) { in hasAcceptableDefaultArgument() 1640 D = DefaultArg.getInheritedFrom(); in hasAcceptableDefaultArgument()
|
| /llvm-project-15.0.7/clang/test/Modules/ |
| H A D | odr_hash.cpp | 2491 template <class> class DefaultArg; 2497 int D = 1, class E = int, template <class F> class = DefaultArg> 2508 int D = 1, class E = int, template <class F> class = DefaultArg>
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 2918 ExprResult ConvertParamDefaultArgument(ParmVarDecl *Param, Expr *DefaultArg, 2920 void SetParamDefaultArgument(ParmVarDecl *Param, Expr *DefaultArg, 7826 ParsedType DefaultArg, bool HasTypeConstraint); 7859 Expr *DefaultArg); 7869 ParsedTemplateArgument DefaultArg);
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderDecl.cpp | 4281 auto *DefaultArg = Record.readExpr(); in UpdateDecl() local 4286 Param->setDefaultArg(DefaultArg); in UpdateDecl()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Expr.cpp | 3836 } else if (const CXXDefaultArgExpr *DefaultArg in isNullPointerConstant() local 3839 return DefaultArg->getExpr()->isNullPointerConstant(Ctx, NPC); in isNullPointerConstant()
|