@@ -3549,7 +3549,7 @@ class Sema final : public SemaBase {
3549
3549
NamedDecl *ActOnVariableDeclarator(
3550
3550
Scope *S, Declarator &D, DeclContext *DC, TypeSourceInfo *TInfo,
3551
3551
LookupResult &Previous, MultiTemplateParamsArg TemplateParamLists,
3552
- bool &AddToScope, ArrayRef<BindingDecl *> Bindings = std::nullopt );
3552
+ bool &AddToScope, ArrayRef<BindingDecl *> Bindings = {} );
3553
3553
3554
3554
/// Perform semantic checking on a newly-created variable
3555
3555
/// declaration.
@@ -5393,7 +5393,7 @@ class Sema final : public SemaBase {
5393
5393
5394
5394
bool SetCtorInitializers(
5395
5395
CXXConstructorDecl *Constructor, bool AnyErrors,
5396
- ArrayRef<CXXCtorInitializer *> Initializers = std::nullopt );
5396
+ ArrayRef<CXXCtorInitializer *> Initializers = {} );
5397
5397
5398
5398
/// MarkBaseAndMemberDestructorsReferenced - Given a record decl,
5399
5399
/// mark all the non-trivial destructors of its members and bases as
@@ -6691,7 +6691,7 @@ class Sema final : public SemaBase {
6691
6691
/// \param StopAt Subexpressions that we shouldn't recurse into.
6692
6692
void MarkDeclarationsReferencedInExpr(
6693
6693
Expr *E, bool SkipLocalVariables = false,
6694
- ArrayRef<const Expr *> StopAt = std::nullopt );
6694
+ ArrayRef<const Expr *> StopAt = {} );
6695
6695
6696
6696
/// Try to convert an expression \p E to type \p Ty. Returns the result of the
6697
6697
/// conversion.
@@ -6762,7 +6762,7 @@ class Sema final : public SemaBase {
6762
6762
DiagnoseEmptyLookup(Scope *S, CXXScopeSpec &SS, LookupResult &R,
6763
6763
CorrectionCandidateCallback &CCC,
6764
6764
TemplateArgumentListInfo *ExplicitTemplateArgs = nullptr,
6765
- ArrayRef<Expr *> Args = std::nullopt ,
6765
+ ArrayRef<Expr *> Args = {} ,
6766
6766
DeclContext *LookupCtx = nullptr,
6767
6767
TypoExpr **Out = nullptr);
6768
6768
@@ -10195,7 +10195,7 @@ class Sema final : public SemaBase {
10195
10195
bool PartialOverloading = false, bool AllowExplicit = true,
10196
10196
bool AllowExplicitConversion = false,
10197
10197
ADLCallKind IsADLCandidate = ADLCallKind::NotADL,
10198
- ConversionSequenceList EarlyConversions = std::nullopt ,
10198
+ ConversionSequenceList EarlyConversions = {} ,
10199
10199
OverloadCandidateParamOrder PO = {},
10200
10200
bool AggregateCandidateDeduction = false);
10201
10201
@@ -10231,7 +10231,7 @@ class Sema final : public SemaBase {
10231
10231
ArrayRef<Expr *> Args, OverloadCandidateSet &CandidateSet,
10232
10232
bool SuppressUserConversions = false,
10233
10233
bool PartialOverloading = false,
10234
- ConversionSequenceList EarlyConversions = std::nullopt ,
10234
+ ConversionSequenceList EarlyConversions = {} ,
10235
10235
OverloadCandidateParamOrder PO = {});
10236
10236
10237
10237
/// Add a C++ member function template as a candidate to the candidate
@@ -13035,7 +13035,7 @@ class Sema final : public SemaBase {
13035
13035
Sema &SemaRef, CodeSynthesisContext::SynthesisKind Kind,
13036
13036
SourceLocation PointOfInstantiation, SourceRange InstantiationRange,
13037
13037
Decl *Entity, NamedDecl *Template = nullptr,
13038
- ArrayRef<TemplateArgument> TemplateArgs = std::nullopt ,
13038
+ ArrayRef<TemplateArgument> TemplateArgs = {} ,
13039
13039
sema::TemplateDeductionInfo *DeductionInfo = nullptr);
13040
13040
13041
13041
InstantiatingTemplate(const InstantiatingTemplate &) = delete;
0 commit comments