[llvm] r286094 - Update CommandLine.rst getRegisteredOptions example
Brian Gesiak via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 6 18:43:02 PST 2016
Author: modocache
Date: Sun Nov 6 20:43:01 2016
New Revision: 286094
URL: http://llvm.org/viewvc/llvm-project?rev=286094&view=rev
Log:
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
Modified:
llvm/trunk/docs/CommandLine.rst
Modified: llvm/trunk/docs/CommandLine.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandLine.rst?rev=286094&r1=286093&r2=286094&view=diff
==============================================================================
--- llvm/trunk/docs/CommandLine.rst (original)
+++ llvm/trunk/docs/CommandLine.rst Sun Nov 6 20:43:01 2016
@@ -1289,8 +1289,7 @@ Here is an example of how the function c
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);
More information about the llvm-commits
mailing list