From: Misha Brukman Date: Tue, 10 May 2005 22:05:27 +0000 (+0000) Subject: Consistently surround `cl::' code structures with and to make them X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c43d914175d1aef19c3fe29150007f8a1ed9ec1d;p=oota-llvm.git Consistently surround `cl::' code structures with and to make them stand out as code git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21846 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/CommandLine.html b/docs/CommandLine.html index b708d9a54bd..83db04d6ed4 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -1284,27 +1284,29 @@ that this option prefixes its value. With 'Prefix' options, the equal sign does not separate the value from the option name specified. Instead, the value is everything after the prefix, including any equal sign if present. This is useful for processing odd arguments like -lmalloc and -L/usr/lib in a -linker tool or -DNAME=value in a compiler tool. Here, the +linker tool or -DNAME=value in a compiler tool. Here, the 'l', 'D' and 'L' options are normal string (or list) -options, that have the cl::Prefix modifier added to -allow the CommandLine library to recognize them. Note that -cl::Prefix options must not have the cl::ValueDisallowed modifier specified. +options, that have the cl::Prefix +modifier added to allow the CommandLine library to recognize them. Note that +cl::Prefix options must not have the +cl::ValueDisallowed modifier +specified.
  • The cl::Grouping modifier is used to implement unix style tools (like ls) that have lots of single letter arguments, but only require a single dash. For example, the 'ls -labF' command actually enables four different options, all of which are single -letters. Note that cl::Grouping options cannot have -values.
  • +letters. Note that cl::Grouping +options cannot have values. -

    The CommandLine library does not restrict how you use the cl::Prefix or cl::Grouping -modifiers, but it is possible to specify ambiguous argument settings. Thus, it -is possible to have multiple letter options that are prefix or grouping options, -and they will still work as designed.

    +

    The CommandLine library does not restrict how you use the cl::Prefix or cl::Grouping modifiers, but it is possible to +specify ambiguous argument settings. Thus, it is possible to have multiple +letter options that are prefix or grouping options, and they will still work as +designed.

    To do this, the CommandLine library uses a greedy algorithm to parse the input option into (potentially multiple) prefix and grouping options. The