@@ -282,19 +282,19 @@ static bool matchCallArgumentsImpl(
282
282
// requiring further checking at the end.
283
283
bool potentiallyOutOfOrder = false ;
284
284
285
- // Local function that claims the argument at \c argNumber , returning the
285
+ // Local function that claims the argument at \c argIdx , returning the
286
286
// index of the claimed argument. This is primarily a helper for
287
287
// \c claimNextNamed.
288
- auto claim = [&](Identifier expectedName, unsigned argNumber ,
288
+ auto claim = [&](Identifier expectedName, unsigned argIdx ,
289
289
bool ignoreNameClash = false ) -> unsigned {
290
290
// Make sure we can claim this argument.
291
- assert (argNumber != numArgs && " Must have a valid index to claim" );
292
- assert (!claimedArgs[argNumber ] && " Argument already claimed" );
291
+ assert (argIdx != numArgs && " Must have a valid index to claim" );
292
+ assert (!claimedArgs[argIdx ] && " Argument already claimed" );
293
293
294
- auto argLabel = args[argNumber ].getLabel ();
294
+ auto argLabel = args[argIdx ].getLabel ();
295
295
if (!actualArgNames.empty ()) {
296
296
// We're recording argument names; record this one.
297
- actualArgNames[argNumber ] = expectedName;
297
+ actualArgNames[argIdx ] = expectedName;
298
298
} else if (argLabel != expectedName && !ignoreNameClash &&
299
299
!(argLabel.str ().startswith (" $" ) &&
300
300
argLabel.str ().drop_front () == expectedName.str ())) {
@@ -313,12 +313,12 @@ static bool matchCallArgumentsImpl(
313
313
}
314
314
315
315
// Record this argument name.
316
- actualArgNames[argNumber ] = expectedName;
316
+ actualArgNames[argIdx ] = expectedName;
317
317
}
318
318
319
- claimedArgs[argNumber ] = true ;
319
+ claimedArgs[argIdx ] = true ;
320
320
++numClaimedArgs;
321
- return argNumber ;
321
+ return argIdx ;
322
322
};
323
323
324
324
// Local function that skips over any claimed arguments.
0 commit comments