File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2211,7 +2211,7 @@ class ArgumentMatcher : public MatchCallArgumentListener {
2211
2211
Diagnosed = true ;
2212
2212
}
2213
2213
2214
- void missingArgument (unsigned missingParamIdx) override {
2214
+ Optional< unsigned > missingArgument (unsigned missingParamIdx) override {
2215
2215
auto ¶m = Parameters[missingParamIdx];
2216
2216
Identifier name = param.getLabel ();
2217
2217
@@ -2341,6 +2341,7 @@ class ArgumentMatcher : public MatchCallArgumentListener {
2341
2341
candidate.getDecl ()->getFullName ());
2342
2342
2343
2343
Diagnosed = true ;
2344
+ return None;
2344
2345
}
2345
2346
2346
2347
bool isPropertyWrapperImplicitInit () {
Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ MatchCallArgumentListener::~MatchCallArgumentListener() { }
36
36
37
37
void MatchCallArgumentListener::extraArgument (unsigned argIdx) { }
38
38
39
- void MatchCallArgumentListener::missingArgument (unsigned paramIdx) { }
39
+ Optional<unsigned >
40
+ MatchCallArgumentListener::missingArgument (unsigned paramIdx) {
41
+ return None;
42
+ }
40
43
41
44
bool MatchCallArgumentListener::missingLabel (unsigned paramIdx) { return true ; }
42
45
bool MatchCallArgumentListener::extraneousLabel (unsigned paramIdx) {
Original file line number Diff line number Diff line change @@ -284,8 +284,9 @@ CalleeCandidateInfo::ClosenessResultTy CalleeCandidateInfo::evaluateCloseness(
284
284
void extraArgument (unsigned argIdx) override {
285
285
result = CC_ArgumentCountMismatch;
286
286
}
287
- void missingArgument (unsigned paramIdx) override {
287
+ Optional< unsigned > missingArgument (unsigned paramIdx) override {
288
288
result = CC_ArgumentCountMismatch;
289
+ return None;
289
290
}
290
291
bool missingLabel (unsigned paramIdx) override {
291
292
result = CC_ArgumentLabelMismatch;
Original file line number Diff line number Diff line change @@ -3858,7 +3858,7 @@ class MatchCallArgumentListener {
3858
3858
// / indices.
3859
3859
// /
3860
3860
// / \param paramIdx The index of the parameter that is missing an argument.
3861
- virtual void missingArgument (unsigned paramIdx);
3861
+ virtual Optional< unsigned > missingArgument (unsigned paramIdx);
3862
3862
3863
3863
// / Indicate that there was no label given when one was expected by parameter.
3864
3864
// /
You can’t perform that action at this time.
0 commit comments