//===- Option.h - Abstract Driver Options -----------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_OPTION_OPTION_H #define LLVM_OPTION_OPTION_H #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Option/OptSpecifier.h" #include "llvm/Option/OptTable.h" #include "llvm/Support/ErrorHandling.h" #include <cassert> namespace llvm { class raw_ostream; namespace opt { class Arg; class ArgList; /// ArgStringList - Type used for constructing argv lists for subprocesses. ArgStringList; /// Base flags for all options. Custom flags may be added after. enum DriverFlag { … }; enum DriverVisibility { … }; /// Option - Abstract representation for a single form of driver /// argument. /// /// An Option class represents a form of option that the driver /// takes, for example how many arguments the option has and how /// they can be provided. Individual option instances store /// additional information about what group the option is a member /// of (if any), if the option is an alias, and a number of /// flags. At runtime the driver parses the command line into /// concrete Arg instances, each of which corresponds to a /// particular Option instance. class Option { … }; } // end namespace opt } // end namespace llvm #endif // LLVM_OPTION_OPTION_H