forked from OSchip/llvm-project
Update CommandLine.rst getRegisteredOptions example
Summary: Update the docs to match the changes in http://reviews.llvm.org/D7132 Reviewers: beanz, llvm-commits, modocache Differential Revision: https://reviews.llvm.org/D26296 llvm-svn: 286094
This commit is contained in:
parent
6ba1db9f78
commit
2980b0a15e
|
@ -1289,8 +1289,7 @@ Here is an example of how the function could be used:
|
|||
int main(int argc, char **argv) {
|
||||
cl::OptionCategory AnotherCategory("Some options");
|
||||
|
||||
StringMap<cl::Option*> Map;
|
||||
cl::getRegisteredOptions(Map);
|
||||
StringMap<cl::Option*> &Map = cl::getRegisteredOptions();
|
||||
|
||||
//Unhide useful option and put it in a different category
|
||||
assert(Map.count("print-all-options") > 0);
|
||||
|
|
Loading…
Reference in New Issue