[Lldb-commits] [PATCH] D123502: [lldb][NFC] Refactor printing of short options in help

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 11 06:05:22 PDT 2022


DavidSpickett created this revision.
Herald added a project: All.
DavidSpickett requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Instead of building a set twice for optional and required,
build a set for each while walking the options once.

Then take advantage of set being sorted meaning we don't
have to enforce the upper/lower order ourselves.

Just cleaned up the formatting on the later loops.
Combined the if conditions and used a single line if.

Depends on D123501 <https://reviews.llvm.org/D123501>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123502

Files:
  lldb/source/Interpreter/Options.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123502.421894.patch
Type: text/x-patch
Size: 4347 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220411/16f85573/attachment.bin>


More information about the lldb-commits mailing list