aboutsummaryrefslogtreecommitdiffstats
path: root/docs/CommandLine.html
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-05-12 18:42:35 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-05-12 18:42:35 +0000
commitc53aefb5acb981b2f618e7ab2d8a526851ab70bb (patch)
tree7726a70600933443af2ae55d62181a79a015f36a /docs/CommandLine.html
parent6c16c4bfd262a073353447224f2f0ffcee4e23db (diff)
downloadexternal_llvm-c53aefb5acb981b2f618e7ab2d8a526851ab70bb.zip
external_llvm-c53aefb5acb981b2f618e7ab2d8a526851ab70bb.tar.gz
external_llvm-c53aefb5acb981b2f618e7ab2d8a526851ab70bb.tar.bz2
Made to be HTML-4.01 (Strict) -compliant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandLine.html')
-rw-r--r--docs/CommandLine.html31
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 &lt;filename&gt;</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>&lt;string&gt; 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>&lt;string&gt; 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>&lt;bool, true&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;<i>// Normal option</i>
@@ -1255,11 +1256,11 @@ strategy basically looks like this:</p>
&nbsp;&nbsp;input = OrigInput;<br>
&nbsp;&nbsp;while (!isOption(input) &amp;&amp; !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>