[PATCH] D70620: [CommandLine] Add callbacks to Options
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 11:01:24 PST 2019
MaskRay added inline comments.
================
Comment at: llvm/docs/CommandLine.rst:1003
+ 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
----------------
```
`cl::list`_
```
================
Comment at: llvm/docs/CommandLine.rst:1004
+ 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
----------------
```
`cl::CommaSeparated`_
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70620/new/
https://reviews.llvm.org/D70620
More information about the llvm-commits
mailing list