[cfe-commits] r89367 - /cfe/trunk/include/clang/Driver/OptParser.td

Daniel Dunbar daniel at zuster.org
Thu Nov 19 10:09:07 PST 2009


Author: ddunbar
Date: Thu Nov 19 12:09:06 2009
New Revision: 89367

URL: http://llvm.org/viewvc/llvm-project?rev=89367&view=rev
Log:
Driver: Add Sentinel flag to option kinds.

Modified:
    cfe/trunk/include/clang/Driver/OptParser.td

Modified: cfe/trunk/include/clang/Driver/OptParser.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/OptParser.td?rev=89367&r1=89366&r2=89367&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/OptParser.td (original)
+++ cfe/trunk/include/clang/Driver/OptParser.td Thu Nov 19 12:09:06 2009
@@ -14,10 +14,12 @@
 
 // Define the kinds of options.
 
-class OptionKind<string name, int predecence = 0> {
+class OptionKind<string name, int predecence = 0, bit sentinel = 0> {
   string Name = name;
   // The kind precedence, kinds with lower precedence are matched first.
   int Precedence = predecence;
+  // Indicate a sentinel option.
+  bit Sentinel = sentinel;
 }
 
 // An option group.





More information about the cfe-commits mailing list