diff options
author | Mike Stump <mrs@apple.com> | 2009-02-02 22:48:49 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-02-02 22:48:49 +0000 |
commit | d64e0eb094a108bdcdf51328425904042aa6122b (patch) | |
tree | d5a79683134d97d351a897b74ade326b3a8d419c /docs/CommandLine.html | |
parent | 5b93f6fa82e33b17d618b3e24da513f547861481 (diff) | |
download | external_llvm-d64e0eb094a108bdcdf51328425904042aa6122b.zip external_llvm-d64e0eb094a108bdcdf51328425904042aa6122b.tar.gz external_llvm-d64e0eb094a108bdcdf51328425904042aa6122b.tar.bz2 |
Improve -fno-opt style option processing to not require an extra
option to make the -fno- form on the option. We also document the new
form in the CommandLine documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63559 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandLine.html')
-rw-r--r-- | docs/CommandLine.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 97df9f7..013ff27 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -1447,6 +1447,16 @@ unrecognized option strings to it as values instead of signaling an error. As with <b><tt>cl::CommaSeparated</tt></b></a>, this modifier only makes sense with a <a href="#cl::list">cl::list</a> option.</li> +<li><a name="cl::AllowInverse">The <b><tt>cl::AllowInverse</tt></b></a> +modifier can be used on options that have the form <tt>-fopt</tt> to +automatically create a corresponding +<tt>-fno-opt</tt> option. The <tt>f</tt> can be any single +character, and the <tt>opt</tt> can be any one or more characters. +The value of the created option is the logical complement of the value +that would have been used if the base form of the option was used. +This modifier only makes sense with an option that uses +a <a href="#boolparser">bool parser</a>.</li> + </ul> @@ -1745,7 +1755,11 @@ for any data type.</li> <li><a name="boolparser">The <b><tt>parser<bool></tt> specialization</b></a> is used to convert boolean strings to a boolean value. Currently accepted strings are "<tt>true</tt>", "<tt>TRUE</tt>", "<tt>True</tt>", "<tt>1</tt>", -"<tt>false</tt>", "<tt>FALSE</tt>", "<tt>False</tt>", and "<tt>0</tt>".</li> +"<tt>false</tt>", "<tt>FALSE</tt>", "<tt>False</tt>", and "<tt>0</tt>". The +<b><tt>cl::AllowInverse</tt></b> modifier can be used on an option of the form +<tt>-fopt</tt> that uses the <tt>parser<bool></tt> specialization +to create a corresponding option with the form <tt>-fno-opt</tt>. See +<a href="#cl::AllowInverse"><tt>cl::AllowInverse</tt></a> for details.</li> <li><a name="boolOrDefaultparser">The <b><tt>parser<boolOrDefault></tt> specialization</b></a> is used for cases where the value is boolean, |