[PATCH] D58711: [CommandLine] Allow grouping of options which can have values.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 27 04:06:31 PST 2019


ikudrin created this revision.
ikudrin added a reviewer: jhenderson.
Herald added subscribers: kristina, rupprecht.
Herald added a project: LLVM.

This patch is a follow-up for D58499 <https://reviews.llvm.org/D58499>. It allows the remaining forms of providing values
for options to be used at the end of a group. This includes both prefix variants
of options and the "opt=val" form.

With this fix, it is possible to better follow the way GNU binutils tools handle grouping
options. For example, the `-j` option in `objdump` can be used in any of the following ways:

  $ objdump -d -j .text a.o
  $ objdump -d -j.text a.o
  $ objdump -dj .text a.o
  $ objdump -dj.text a.o


Repository:
  rL LLVM

https://reviews.llvm.org/D58711

Files:
  docs/CommandLine.rst
  include/llvm/Support/CommandLine.h
  lib/Support/CommandLine.cpp
  tools/llvm-readobj/llvm-readobj.cpp
  unittests/Support/CommandLineTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58711.188515.patch
Type: text/x-patch
Size: 15397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190227/d7d33970/attachment.bin>


More information about the llvm-commits mailing list