Searched refs:DefaultArg (Results 1 – 10 of 10) sorted by relevance
/external/clang/test/Analysis/ |
D | dtor.cpp | 162 struct DefaultArg { struct 163 DefaultArg(int x = 0) {} in DefaultArg() argument 164 ~DefaultArg(); 167 struct InheritsDefaultArg : DefaultArg {
|
/external/clang/lib/Parse/ |
D | ParseTemplate.cpp | 538 ParsedType DefaultArg; in ParseTypeParameter() local 540 DefaultArg = ParseTypeName(/*Range=*/nullptr, in ParseTypeParameter() 545 EqualLoc, DefaultArg); in ParseTypeParameter() 642 ParsedTemplateArgument DefaultArg; in ParseTemplateTemplateParameter() local 644 DefaultArg = ParseTemplateTemplateArgument(); in ParseTemplateTemplateParameter() 645 if (DefaultArg.isInvalid()) { in ParseTemplateTemplateParameter() 656 Position, EqualLoc, DefaultArg); in ParseTemplateTemplateParameter() 690 ExprResult DefaultArg; in ParseNonTypeTemplateParameter() local 701 DefaultArg = Actions.CorrectDelayedTyposInExpr(ParseAssignmentExpression()); in ParseNonTypeTemplateParameter() 702 if (DefaultArg.isInvalid()) in ParseNonTypeTemplateParameter() [all …]
|
/external/clang/test/SemaCXX/ |
D | typo-correction-delayed.cpp | 108 const int DefaultArg = 9; // expected-note {{'DefaultArg' declared here}} variable
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 555 ParsedType DefaultArg) { in ActOnTypeParameter() argument 584 if (DefaultArg && IsParameterPack) { in ActOnTypeParameter() 586 DefaultArg = ParsedType(); in ActOnTypeParameter() 590 if (DefaultArg) { in ActOnTypeParameter() 592 GetTypeFromParser(DefaultArg, &DefaultTInfo); in ActOnTypeParameter() 791 TemplateArgumentLoc DefaultArg = translateTemplateArgument(*this, Default); in ActOnTemplateTemplateParameter() local 792 if (DefaultArg.getArgument().getAsTemplate().isNull()) { in ActOnTemplateTemplateParameter() 793 Diag(DefaultArg.getLocation(), diag::err_template_arg_not_class_template) in ActOnTemplateTemplateParameter() 794 << DefaultArg.getSourceRange(); in ActOnTemplateTemplateParameter() 799 if (DiagnoseUnexpandedParameterPack(DefaultArg.getLocation(), in ActOnTemplateTemplateParameter() [all …]
|
D | SemaDeclCXX.cpp | 59 Expr *DefaultArg; member in __anone4927eee0111::CheckDefaultArgumentVisitor 64 : DefaultArg(defarg), S(s) {} in CheckDefaultArgumentVisitor() 97 << Param->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr() 105 << VDecl->getDeclName() << DefaultArg->getSourceRange(); in VisitDeclRefExpr() 298 Expr *DefaultArg) { in ActOnParamDefaultArgument() argument 299 if (!param || !DefaultArg) in ActOnParamDefaultArgument() 308 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 314 if (DiagnoseUnexpandedParameterPack(DefaultArg, UPPC_DefaultArgument)) { in ActOnParamDefaultArgument() 324 << DefaultArg->getSourceRange(); in ActOnParamDefaultArgument() 329 CheckDefaultArgumentVisitor DefaultArgChecker(DefaultArg, this); in ActOnParamDefaultArgument() [all …]
|
D | SemaLookup.cpp | 1439 auto &DefaultArg = D->getDefaultArgStorage(); in hasVisibleDefaultArgument() local 1440 if (!DefaultArg.isInherited() && S.isVisible(D)) in hasVisibleDefaultArgument() 1443 if (!DefaultArg.isInherited() && Modules) { in hasVisibleDefaultArgument() 1451 D = DefaultArg.getInheritedFrom(); in hasVisibleDefaultArgument()
|
D | SemaExprCXX.cpp | 824 Expr *DefaultArg = in CheckCXXThrowOperand() local 826 Context.addDefaultArgExprForConstructor(CD, I, DefaultArg); in CheckCXXThrowOperand()
|
/external/clang/lib/CodeGen/ |
D | MicrosoftCXXABI.cpp | 3856 Stmt *DefaultArg = getContext().getDefaultArgExprForConstructor(CD, I); in getAddrOfCXXCtorClosure() local 3857 assert(DefaultArg && "sema forgot to instantiate default args"); in getAddrOfCXXCtorClosure() 3858 ArgVec.push_back(DefaultArg); in getAddrOfCXXCtorClosure()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 3329 } else if (const CXXDefaultArgExpr *DefaultArg in isNullPointerConstant() local 3332 return DefaultArg->getExpr()->isNullPointerConstant(Ctx, NPC); in isNullPointerConstant()
|
/external/clang/include/clang/Sema/ |
D | Sema.h | 1709 bool SetParamDefaultArgument(ParmVarDecl *Param, Expr *DefaultArg, 5564 ParsedType DefaultArg); 5571 Expr *DefaultArg); 5581 ParsedTemplateArgument DefaultArg);
|