diff options
Diffstat (limited to 'docs/CommandLine.html')
-rw-r--r-- | docs/CommandLine.html | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 3533f14..868e208 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -215,10 +215,10 @@ we would like to support the unix standard '<tt>-o <filename></tt>' option to specify where to put the output. With the CommandLine library, this is represented like this:</p> -<p><tt> -<a name="value_desc_example"> -<a href="#cl::opt">cl::opt</a><string> OutputFilename("<i>o</i>", <a href="#cl::desc">cl::desc</a>("<i>Specify output filename</i>"), <a href="#cl::value_desc">cl::value_desc</a>("<i>filename</i>"));</a> -</tt></p> +<a name="value_desc_example"></a> +<pre> +<a href="#cl::opt">cl::opt</a><string> OutputFilename("<i>o</i>", <a href="#cl::desc">cl::desc</a>("<i>Specify output filename</i>"), <a href="#cl::value_desc">cl::value_desc</a>("<i>filename</i>")); +</pre> <p>This declares a global variable "<tt>OutputFilename</tt>" that is used to capture the result of the "<tt>o</tt>" argument (first parameter). We specify @@ -934,7 +934,7 @@ attribute:</p> <pre> bool DebugFlag; <i>// the actual value</i> static <a href="#cl::opt">cl::opt</a><bool, true> <i>// The parser</i> -Debug("<i>debug</i>", <a href="#cl::desc">cl::desc</a>("<i>Enable debug output</i>")</a>, <a href="#cl::Hidden">cl::Hidden</a>, +Debug("<i>debug</i>", <a href="#cl::desc">cl::desc</a>("<i>Enable debug output</i>"), <a href="#cl::Hidden">cl::Hidden</a>, <a href="#cl::location">cl::location</a>(DebugFlag)); </pre> @@ -1242,6 +1242,7 @@ input option into (potentially multiple) prefix and grouping options. The strategy basically looks like this:</p> <p><tt>parse(string OrigInput) {</tt> + <ol> <li><tt>string input = OrigInput;</tt> <li><tt>if (isOption(input)) return getOption(input).parse();</tt> <i>// Normal option</i> @@ -1255,11 +1256,11 @@ strategy basically looks like this:</p> input = OrigInput;<br> while (!isOption(input) && !input.empty()) input.pop_back();<br> }</tt> -<li><tt>if (!OrigInput.empty()) error();</tt> -</tt> +<li><tt>if (!OrigInput.empty()) error();</tt></li> </ol> -<tt>}</tt></p> + +<p><tt>}</tt></p> </div> @@ -1698,12 +1699,16 @@ tutorial.</p> <!-- *********************************************************************** --> <hr> -<div class="doc_footer"> - <address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address> - <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a> - <br> +<address> + <a href="http://jigsaw.w3.org/css-validator/check/referer"><img + src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a> + <a href="http://validator.w3.org/check/referer"><img + src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a> + + <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> + <a href="http://llvm.cs.uiuc.edu">LLVM Compiler Infrastructure</a><br> Last modified: $Date$ -</div> +</address> </body> </html> |