Home
last modified time | relevance | path

Searched refs:DefaultArg (Results 1 – 9 of 9) sorted by relevance

/external/clang/test/Analysis/
Ddtor.cpp162 struct DefaultArg { struct
163 DefaultArg(int x = 0) {} in DefaultArg() function
164 ~DefaultArg();
167 struct InheritsDefaultArg : DefaultArg {
/external/clang/lib/Parse/
DParseTemplate.cpp526 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/
Dtypo-correction-delayed.cpp106 const int DefaultArg = 9; // expected-note {{'DefaultArg' declared here}} variable
/external/clang/lib/Sema/
DSemaTemplate.cpp554 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 …]
DSemaDeclCXX.cpp59 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 …]
DSemaExprCXX.cpp825 Expr *DefaultArg = in CheckCXXThrowOperand() local
827 Context.addDefaultArgExprForConstructor(CD, I, DefaultArg); in CheckCXXThrowOperand()
/external/clang/lib/CodeGen/
DMicrosoftCXXABI.cpp3411 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/
DSema.h1575 bool SetParamDefaultArgument(ParmVarDecl *Param, Expr *DefaultArg,
5297 ParsedType DefaultArg);
5304 Expr *DefaultArg);
5314 ParsedTemplateArgument DefaultArg);
/external/clang/lib/AST/
DExpr.cpp3235 } else if (const CXXDefaultArgExpr *DefaultArg in isNullPointerConstant() local
3238 return DefaultArg->getExpr()->isNullPointerConstant(Ctx, NPC); in isNullPointerConstant()