]> granicus.if.org Git - clang/commitdiff
Driver: Add Sentinel flag to option kinds.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 19 Nov 2009 18:09:06 +0000 (18:09 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 19 Nov 2009 18:09:06 +0000 (18:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89367 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/OptParser.td

index 70b59c69c264d1e87078c425cff04c97b5db5586..3df315a0db8f8e1f0e537b78c78a8ce62332aee5 100644 (file)
 
 // 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.