[llvm] r283782 - Update documentation after r283671 ("Turn cl::values() (for enum) from a vararg function to using C++ variadic template")
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 10 10:13:14 PDT 2016
Author: mehdi_amini
Date: Mon Oct 10 12:13:14 2016
New Revision: 283782
URL: http://llvm.org/viewvc/llvm-project?rev=283782&view=rev
Log:
Update documentation after r283671 ("Turn cl::values() (for enum) from a vararg function to using C++ variadic template")
Modified:
llvm/trunk/docs/CommandLine.rst
Modified: llvm/trunk/docs/CommandLine.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/CommandLine.rst?rev=283782&r1=283781&r2=283782&view=diff
==============================================================================
--- llvm/trunk/docs/CommandLine.rst (original)
+++ llvm/trunk/docs/CommandLine.rst Mon Oct 10 12:13:14 2016
@@ -363,8 +363,7 @@ library fill it in with the appropriate
This declaration defines a variable "``OptimizationLevel``" of the
"``OptLevel``" enum type. This variable can be assigned any of the values that
-are listed in the declaration (Note that the declaration list must be terminated
-with the "``clEnumValEnd``" argument!). The CommandLine library enforces that
+are listed in the declaration. The CommandLine library enforces that
the user can only specify one of the options, and it ensure that only valid enum
values can be specified. The "``clEnumVal``" macros ensure that the command
line arguments matched the enum values. With this option added, our help output
@@ -962,11 +961,10 @@ This section describes the basic attribu
.. _cl::values:
* The **cl::values** attribute specifies the string-to-value mapping to be used
- by the generic parser. It takes a **clEnumValEnd terminated** list of
- (option, value, description) triplets that specify the option name, the value
- mapped to, and the description shown in the ``-help`` for the tool. Because
- the generic parser is used most frequently with enum values, two macros are
- often useful:
+ by the generic parser. It takes a list of (option, value, description)
+ triplets that specify the option name, the value mapped to, and the
+ description shown in the ``-help`` for the tool. Because the generic parser
+ is used most frequently with enum values, two macros are often useful:
#. The **clEnumVal** macro is used as a nice simple way to specify a triplet
for an enum. This macro automatically makes the option name be the same as
More information about the llvm-commits
mailing list