From 069db88a3b2cae52023664fdd30378d3adc26566 Mon Sep 17 00:00:00 2001 From: Brian Gesiak Date: Mon, 7 Nov 2016 02:43:01 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286094 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandLine.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/CommandLine.rst b/docs/CommandLine.rst index 9e04a57df3a..a660949881a 100644 --- a/docs/CommandLine.rst +++ b/docs/CommandLine.rst @@ -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 Map; - cl::getRegisteredOptions(Map); + StringMap &Map = cl::getRegisteredOptions(); //Unhide useful option and put it in a different category assert(Map.count("print-all-options") > 0); -- 2.50.1