summaryrefslogtreecommitdiffstats
path: root/include/clang/Driver/OptSpecifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Driver/OptSpecifier.h')
-rw-r--r--include/clang/Driver/OptSpecifier.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Driver/OptSpecifier.h b/include/clang/Driver/OptSpecifier.h
index c38b36c..bb1cd17 100644
--- a/include/clang/Driver/OptSpecifier.h
+++ b/include/clang/Driver/OptSpecifier.h
@@ -22,9 +22,12 @@ namespace driver {
explicit OptSpecifier(bool); // DO NOT IMPLEMENT
public:
+ OptSpecifier() : ID(0) {}
/*implicit*/ OptSpecifier(unsigned _ID) : ID(_ID) {}
/*implicit*/ OptSpecifier(const Option *Opt);
+ bool isValid() const { return ID != 0; }
+
unsigned getID() const { return ID; }
bool operator==(OptSpecifier Opt) const { return ID == Opt.getID(); }
OpenPOWER on IntegriCloud