Skip to content

Commit 7664508

Browse files
committed
[llvm/OptTable] Add named param comment for GroupedShortOption
1 parent 56049b7 commit 7664508

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

llvm/lib/Option/OptTable.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ std::unique_ptr<Arg> OptTable::parseOneArgGrouped(InputArgList &Args,
360360
continue;
361361

362362
Option Opt(Start, this);
363-
if (std::unique_ptr<Arg> A = Opt.accept(
364-
Args, StringRef(Args.getArgString(Index), ArgSize), false, Index))
363+
if (std::unique_ptr<Arg> A =
364+
Opt.accept(Args, StringRef(Args.getArgString(Index), ArgSize),
365+
/*GroupedShortOption=*/false, Index))
365366
return A;
366367

367368
// If Opt is a Flag of length 2 (e.g. "-a"), we know it is a prefix of
@@ -381,8 +382,8 @@ std::unique_ptr<Arg> OptTable::parseOneArgGrouped(InputArgList &Args,
381382
return std::make_unique<Arg>(getOption(UnknownOptionID), Str, Index++,
382383
CStr);
383384

384-
if (std::unique_ptr<Arg> A =
385-
Opt.accept(Args, Str.substr(0, 2), true, Index)) {
385+
if (std::unique_ptr<Arg> A = Opt.accept(
386+
Args, Str.substr(0, 2), /*GroupedShortOption=*/true, Index)) {
386387
Args.replaceArgString(Index, Twine('-') + Str.substr(2));
387388
return A;
388389
}
@@ -442,8 +443,9 @@ std::unique_ptr<Arg> OptTable::ParseOneArg(const ArgList &Args, unsigned &Index,
442443
continue;
443444

444445
// See if this option matches.
445-
if (std::unique_ptr<Arg> A = Opt.accept(
446-
Args, StringRef(Args.getArgString(Index), ArgSize), false, Index))
446+
if (std::unique_ptr<Arg> A =
447+
Opt.accept(Args, StringRef(Args.getArgString(Index), ArgSize),
448+
/*GroupedShortOption=*/false, Index))
447449
return A;
448450

449451
// Otherwise, see if this argument was missing values.

0 commit comments

Comments
 (0)