Skip to content

Commit 9a4572e

Browse files
committed
[NFC] Rename argNumber to avoid confusion with numArgs.
1 parent 5d2c887 commit 9a4572e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -282,19 +282,19 @@ static bool matchCallArgumentsImpl(
282282
// requiring further checking at the end.
283283
bool potentiallyOutOfOrder = false;
284284

285-
// Local function that claims the argument at \c argNumber, returning the
285+
// Local function that claims the argument at \c argIdx, returning the
286286
// index of the claimed argument. This is primarily a helper for
287287
// \c claimNextNamed.
288-
auto claim = [&](Identifier expectedName, unsigned argNumber,
288+
auto claim = [&](Identifier expectedName, unsigned argIdx,
289289
bool ignoreNameClash = false) -> unsigned {
290290
// 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");
293293

294-
auto argLabel = args[argNumber].getLabel();
294+
auto argLabel = args[argIdx].getLabel();
295295
if (!actualArgNames.empty()) {
296296
// We're recording argument names; record this one.
297-
actualArgNames[argNumber] = expectedName;
297+
actualArgNames[argIdx] = expectedName;
298298
} else if (argLabel != expectedName && !ignoreNameClash &&
299299
!(argLabel.str().startswith("$") &&
300300
argLabel.str().drop_front() == expectedName.str())) {
@@ -313,12 +313,12 @@ static bool matchCallArgumentsImpl(
313313
}
314314

315315
// Record this argument name.
316-
actualArgNames[argNumber] = expectedName;
316+
actualArgNames[argIdx] = expectedName;
317317
}
318318

319-
claimedArgs[argNumber] = true;
319+
claimedArgs[argIdx] = true;
320320
++numClaimedArgs;
321-
return argNumber;
321+
return argIdx;
322322
};
323323

324324
// Local function that skips over any claimed arguments.

0 commit comments

Comments
 (0)