//===--- Options.h - Option info & table ------------------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors // //===----------------------------------------------------------------------===// #ifndef SWIFT_DRIVER_OPTIONS_H #define SWIFT_DRIVER_OPTIONS_H #include namespace llvm { namespace opt { class OptTable; } } namespace swift { namespace driver { namespace options { /// Flags specifically for Swift driver options. Must not overlap with /// llvm::opt::DriverFlag. enum SwiftFlags { DriverOption = (1 << 4), FrontendOption = (1 << 5), NoDriverOption = (1 << 6), }; enum ID { OPT_INVALID = 0, // This is not an option ID. #define OPTION(PREFIX, NAME, ID, KIND, GROUP, ALIAS, ALIASARGS, FLAGS, PARAM, \ HELPTEXT, METAVAR) OPT_##ID, #include "swift/Driver/Options.inc" LastOption #undef OPTION }; } //end namespace options std::unique_ptr createDriverOptTable(); } // end namespace driver } // end namespace swift #endif