Skip to content

Commit 9358fd0

Browse files
committed
Restyled
1 parent 4dc879e commit 9358fd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib/support/CHIPArgParser.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -458,16 +458,16 @@ bool ParseArgs(const char * progName, int argc, char * const argv[], OptionSet *
458458
// character of an option group (e.g. 'a' or 'b' in "-abc"), or [prevOptIndex, optind) if it's the final character of an
459459
// option group or not a group at all. Walk through those elements knowing that all elements we encounter before reaching
460460
// the option must be nonoptions. Store the range of those nonoptions in firstNonoptionNew and lastNonoptionPlus1New. If
461-
// this is the final iteration (getopt_long returned -1) then prevOptIndex == optind == argc, which means firstNonoptionNew ==
462-
// lastNonoptionPlus1New == argc, the following for loop will be skipped, and all the nonoptions we had already found will
463-
// get moved to the end of argv.
461+
// this is the final iteration (getopt_long returned -1) then prevOptIndex == optind == argc, which means firstNonoptionNe
462+
// == lastNonoptionPlus1New == argc, the following for loop will be skipped, and all the nonoptions we had already found
463+
// will get moved to the end of argv.
464464
firstNonoptionNew = prevOptIndex;
465465
lastNonoptionPlus1New = prevOptIndex;
466466
for (nonoptionToMove = prevOptIndex; nonoptionToMove <= optind; nonoptionToMove++)
467467
{
468-
// Note that this loop INCLUDES nonoptionToMove=optind since the option that just got processed might be part of a group of short
469-
// options all sharing a single '-', in which case optind is going to land on that same element several times in a row
470-
// before it moves past it.
468+
// Note that this loop INCLUDES nonoptionToMove=optind since the option that just got processed might be part of a group
469+
// of short options all sharing a single '-', in which case optind is going to land on that same element several times
470+
// in a row before it moves past it.
471471
if (argv[nonoptionToMove] && argv[nonoptionToMove][0] == '-')
472472
{
473473
lastNonoptionPlus1New = nonoptionToMove;
@@ -487,7 +487,7 @@ bool ParseArgs(const char * progName, int argc, char * const argv[], OptionSet *
487487
for (indexToSwap = nonoptionToMove; indexToSwap < moveNonoptionToHere; indexToSwap++)
488488
{
489489
// Swap element indexToSwap with element indexToSwap + 1.
490-
tempSwap = permutableArgv[indexToSwap];
490+
tempSwap = permutableArgv[indexToSwap];
491491
permutableArgv[indexToSwap] = permutableArgv[indexToSwap + 1];
492492
permutableArgv[indexToSwap + 1] = tempSwap;
493493
}

0 commit comments

Comments
 (0)