diff options
author | Don Hinton <donh@apple.com> | 2019-12-06 14:40:21 -0800 |
---|---|---|
committer | Don Hinton <donh@apple.com> | 2019-12-06 15:16:45 -0800 |
commit | 6555995a6d4545ff59dcf3388f9acfce3b6129a5 (patch) | |
tree | ced9063ae798be396c497a476da6927a7bd1a92c /lldb/packages/Python/lldbsuite/test/commands/expression/call-function/TestCallStdStringFunction.py | |
parent | 0a717d5b5d31fc2d5bc98ca695031fb09e65beb0 (diff) | |
download | bcm5719-llvm-6555995a6d4545ff59dcf3388f9acfce3b6129a5.tar.gz bcm5719-llvm-6555995a6d4545ff59dcf3388f9acfce3b6129a5.zip |
[CommandLine] Add callbacks to Options
Summary:
Add a new cl::callback attribute to Option.
This attribute specifies a callback function that is called when
an option is seen, and can be used to set other options, as in
option A implies option B. If the option is a `cl::list`, and
`cl::CommaSeparated` is also specified, the callback will fire
once for each value. This could be used to validate combinations
or selectively set other options.
Reviewers: beanz, thomasfinch, MaskRay, thopre, serge-sans-paille
Reviewed By: beanz
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D70620
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/call-function/TestCallStdStringFunction.py')
0 files changed, 0 insertions, 0 deletions