Skip to content

Commit 98e20e1

Browse files
authored
[CommandLine][NFC] Replace 'std::function' with 'function_ref' (llvm#75973)
This implements a post-commit suggestion for llvm#75679.
1 parent 8197ea2 commit 98e20e1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/CommandLine.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ class CommandLineParser {
175175
StringRef Overview, raw_ostream *Errs = nullptr,
176176
bool LongOptionsUseDoubleDash = false);
177177

178-
void forEachSubCommand(Option &Opt,
179-
std::function<void(SubCommand &)> Action) {
178+
void forEachSubCommand(Option &Opt, function_ref<void(SubCommand &)> Action) {
180179
if (Opt.Subs.empty()) {
181180
Action(SubCommand::getTopLevel());
182181
return;

0 commit comments

Comments
 (0)