[all-commits] [llvm/llvm-project] 1e91f3: [CommandLine] Add subcommand groups (#75678)
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Tue Dec 19 11:45:42 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1e91f32ef777eb2a868acac99d25cba6d54feb02
https://github.com/llvm/llvm-project/commit/1e91f32ef777eb2a868acac99d25cba6d54feb02
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/unittests/Support/CommandLineTest.cpp
Log Message:
-----------
[CommandLine] Add subcommand groups (#75678)
The patch introduces a `SubCommandGroup` class which represents a list
of subcommands. An option can be added to all these subcommands using
one `cl::sub(group)` command. This simplifies the declaration of options
that are shared across multiple subcommands of a tool.
More information about the All-commits
mailing list