We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8197ea2 commit 98e20e1Copy full SHA for 98e20e1
llvm/lib/Support/CommandLine.cpp
@@ -175,8 +175,7 @@ class CommandLineParser {
175
StringRef Overview, raw_ostream *Errs = nullptr,
176
bool LongOptionsUseDoubleDash = false);
177
178
- void forEachSubCommand(Option &Opt,
179
- std::function<void(SubCommand &)> Action) {
+ void forEachSubCommand(Option &Opt, function_ref<void(SubCommand &)> Action) {
180
if (Opt.Subs.empty()) {
181
Action(SubCommand::getTopLevel());
182
return;
0 commit comments