Searched refs:DefaultArg (Results 1 – 9 of 9) sorted by relevance
/external/clang/test/Analysis/ |
D | dtor.cpp | 162 struct DefaultArg { struct 163 DefaultArg(int x = 0) {} in DefaultArg() function 164 ~DefaultArg(); 167 struct InheritsDefaultArg : DefaultArg {
|
/external/clang/lib/Parse/ |
D | ParseTemplate.cpp | 526 ParsedType DefaultArg; in ParseTypeParameter() local 528 DefaultArg = ParseTypeName(/*Range=*/nullptr, in ParseTypeParameter() 533 EqualLoc, DefaultArg); in ParseTypeParameter() 631 ParsedTemplateArgument DefaultArg; in ParseTemplateTemplateParameter() local 633 DefaultArg = ParseTemplateTemplateArgument(); in ParseTemplateTemplateParameter() 634 if (DefaultArg.isInvalid()) { in ParseTemplateTemplateParameter() 645 Position, EqualLoc, DefaultArg); in ParseTemplateTemplateParameter() 679 ExprResult DefaultArg; in ParseNonTypeTemplateParameter() local 689 DefaultArg = Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression()); in ParseNonTypeTemplateParameter() 690 if (DefaultArg.isInvalid()) in ParseNonTypeTemplateParameter() [all …]
|
/external/clang/test/SemaCXX/ |
D | typo-correction-delayed.cpp | 106 const int DefaultArg = 9; // expected-note {{'DefaultArg' declared here}} variable
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 554 ParsedType DefaultArg) { in ActOnTypeParameter() argument 583 if (DefaultArg && IsParameterPack) { in ActOnTypeParameter() 585 DefaultArg = ParsedType(); in ActOnTypeParameter() 589 if (DefaultArg) { in ActOnTypeParameter() 591 GetTypeFromParser(DefaultArg, &DefaultTInfo); in ActOnTypeParameter() 790 TemplateArgumentLoc DefaultArg = translateTemplateArgument(*this, Default); in ActOnTemplateTemplateParameter() local 791 if (DefaultArg.getArgument().getAsTemplate().isNull()) { in ActOnTemplateTemplateParameter() 792 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template) in ActOnTemplateTemplateParameter() 793 << DefaultArg.getSourceRange(); in ActOnTemplateTemplateParameter() 798 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter() [all …]
|
D | SemaDeclCXX.cpp | 59 Expr *DefaultArg; member in __anoned96b9420111::CheckDefaultArgumentVisitor 64 : DefaultArg(defarg), S(s) {} in CheckDefaultArgumentVisitor() 97 << Param->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr() 105 << VDecl->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr() 300 Expr *DefaultArg) { in ActOnParamDefaultArgument() argument 301 if (!param || !DefaultArg) in ActOnParamDefaultArgument() 310 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 316 if (DiagnoseUnexpandedParameterPack(DefaultArg, UPPC_DefaultArgument)) { in ActOnParamDefaultArgument() 326 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 331 CheckDefaultArgumentVisitor DefaultArgChecker(DefaultArg, this); in ActOnParamDefaultArgument() [all …]
|
D | SemaExprCXX.cpp | 825 Expr *DefaultArg = in CheckCXXThrowOperand() local 827 Context.addDefaultArgExprForConstructor(CD, I, DefaultArg); in CheckCXXThrowOperand()
|
/external/clang/lib/CodeGen/ |
D | MicrosoftCXXABI.cpp | 3411 Stmt *DefaultArg = getContext().getDefaultArgExprForConstructor(CD, I); in getAddrOfCXXCtorClosure() local 3412 assert(DefaultArg && "sema forgot to instantiate default args"); in getAddrOfCXXCtorClosure() 3413 ArgVec.push_back(DefaultArg); in getAddrOfCXXCtorClosure()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1575 bool SetParamDefaultArgument(ParmVarDecl *Param, Expr *DefaultArg, 5297 ParsedType DefaultArg); 5304 Expr *DefaultArg); 5314 ParsedTemplateArgument DefaultArg);
|
/external/clang/lib/AST/ |
D | Expr.cpp | 3235 } else if (const CXXDefaultArgExpr *DefaultArg in isNullPointerConstant() local 3238 return DefaultArg->getExpr()->isNullPointerConstant(Ctx, NPC); in isNullPointerConstant()
|