[all-commits] [llvm/llvm-project] 6a2a99: [CommandLine][NFCI] Simplify enumerating subcomman...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue Dec 19 11:39:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a2a99fb4550bab4b64a8cb8d5c9d91ae4f37558
      https://github.com/llvm/llvm-project/commit/6a2a99fb4550bab4b64a8cb8d5c9d91ae4f37558
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2023-12-20 (Wed, 20 Dec 2023)

  Changed paths:
    M llvm/include/llvm/Support/CommandLine.h
    M llvm/lib/Support/CommandLine.cpp

  Log Message:
  -----------
  [CommandLine][NFCI] Simplify enumerating subcommands of an option (#75679)

The patch adds a helper method to iterate over all subcommands to which
an option belongs. Duplicate code is removed and replaced with calls to
this new method.




More information about the All-commits mailing list